• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1=== tests/cases/compiler/functionType.ts ===
2function salt() {}
3>salt : () => void
4
5salt.apply("hello", []);
6>salt.apply("hello", []) : any
7>salt.apply : (this: Function, thisArg: any, argArray?: any) => any
8>salt : () => void
9>apply : (this: Function, thisArg: any, argArray?: any) => any
10>"hello" : "hello"
11>[] : undefined[]
12
13(new Function("return 5"))();
14>(new Function("return 5"))() : any
15>(new Function("return 5")) : Function
16>new Function("return 5") : Function
17>Function : FunctionConstructor
18>"return 5" : "return 5"
19
20
21
22