【发布时间】:2015-01-25 04:49:14
【问题描述】:
我需要一个这样的箭头函数数组
//how can we contain the list of tasks?
private _tasks : ((x: T) => boolean)[];
constructor(...tasks : ((x: T) => boolean)[]) {
this._tasks = tasks;
}
有什么办法可以做到吗?
【问题讨论】:
标签: arrays typescript arrow-functions