17 lines
387 B
JavaScript
17 lines
387 B
JavaScript
//// [functionDeclarationWithArgumentOfTypeFunctionTypeArray.ts]
|
|
function foo(args: { (x): number }[]) {
|
|
return args.length;
|
|
}
|
|
|
|
|
|
//// [functionDeclarationWithArgumentOfTypeFunctionTypeArray.js]
|
|
function foo(args) {
|
|
return args.length;
|
|
}
|
|
|
|
|
|
//// [functionDeclarationWithArgumentOfTypeFunctionTypeArray.d.ts]
|
|
declare function foo(args: {
|
|
(x): number;
|
|
}[]): number;
|