TypeScript/tests/baselines/reference/functionDeclarationWithArgumentOfTypeFunctionTypeArray.js
2014-11-10 17:01:09 -08:00

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;