2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/functionType.ts ===
|
|
|
|
function salt() {}
|
|
|
|
>salt : () => void
|
|
|
|
|
|
|
|
salt.apply("hello", []);
|
|
|
|
>salt.apply("hello", []) : any
|
|
|
|
>salt.apply : (thisArg: any, argArray?: any) => any
|
|
|
|
>salt : () => void
|
|
|
|
>apply : (thisArg: any, argArray?: any) => any
|
|
|
|
>[] : undefined[]
|
|
|
|
|
|
|
|
(new Function("return 5"))();
|
|
|
|
>(new Function("return 5"))() : any
|
|
|
|
>(new Function("return 5")) : Function
|
|
|
|
>new Function("return 5") : Function
|
2014-10-29 05:21:47 +01:00
|
|
|
>Function : FunctionConstructor
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
|
|
|
|
|