2014-07-13 01:04:16 +02:00
|
|
|
//// [functionDeclarationWithArgumentOfTypeFunctionTypeArray.ts]
|
|
|
|
function foo(args: { (x): number }[]) {
|
|
|
|
return args.length;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//// [functionDeclarationWithArgumentOfTypeFunctionTypeArray.js]
|
|
|
|
function foo(args) {
|
|
|
|
return args.length;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//// [functionDeclarationWithArgumentOfTypeFunctionTypeArray.d.ts]
|
2014-07-12 01:09:10 +02:00
|
|
|
declare function foo(args: {
|
|
|
|
(x: any): number;
|
|
|
|
}[]): number;
|