@@ -3,8 +3,8 @@ var x: string|number;
3
3
>x : string | number
4
4
5
5
var r1 = typeof x === "string" && typeof x === "string" ? x.substr : x.toFixed;
6
- >r1 : (from: number, length?: number) => string
7
- >typeof x === "string" && typeof x === "string" ? x.substr : x.toFixed : (from: number, length?: number) => string
6
+ >r1 : (( from: number, length?: number) => string) | ((fractionDigits?: number) => string)
7
+ >typeof x === "string" && typeof x === "string" ? x.substr : x.toFixed : (( from: number, length?: number) => string) | ((fractionDigits?: number) => string)
8
8
>typeof x === "string" && typeof x === "string" : boolean
9
9
>typeof x === "string" : boolean
10
10
>typeof x : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function"
@@ -22,8 +22,8 @@ var r1 = typeof x === "string" && typeof x === "string" ? x.substr : x.toFixed;
22
22
>toFixed : (fractionDigits?: number) => string
23
23
24
24
var r2 = !(typeof x === "string" && typeof x === "string") ? x.toFixed : x.substr;
25
- >r2 : (from: number, length?: number) => string
26
- >!(typeof x === "string" && typeof x === "string") ? x.toFixed : x.substr : (from: number, length?: number) => string
25
+ >r2 : (( from: number, length?: number) => string) | ((fractionDigits?: number) => string)
26
+ >!(typeof x === "string" && typeof x === "string") ? x.toFixed : x.substr : (( from: number, length?: number) => string) | ((fractionDigits?: number) => string)
27
27
>!(typeof x === "string" && typeof x === "string") : boolean
28
28
>(typeof x === "string" && typeof x === "string") : boolean
29
29
>typeof x === "string" && typeof x === "string" : boolean
@@ -43,8 +43,8 @@ var r2 = !(typeof x === "string" && typeof x === "string") ? x.toFixed : x.subst
43
43
>substr : (from: number, length?: number) => string
44
44
45
45
var r3 = typeof x === "string" || typeof x === "string" ? x.substr : x.toFixed;
46
- >r3 : (from: number, length?: number) => string
47
- >typeof x === "string" || typeof x === "string" ? x.substr : x.toFixed : (from: number, length?: number) => string
46
+ >r3 : (( from: number, length?: number) => string) | ((fractionDigits?: number) => string)
47
+ >typeof x === "string" || typeof x === "string" ? x.substr : x.toFixed : (( from: number, length?: number) => string) | ((fractionDigits?: number) => string)
48
48
>typeof x === "string" || typeof x === "string" : boolean
49
49
>typeof x === "string" : boolean
50
50
>typeof x : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function"
@@ -62,8 +62,8 @@ var r3 = typeof x === "string" || typeof x === "string" ? x.substr : x.toFixed;
62
62
>toFixed : (fractionDigits?: number) => string
63
63
64
64
var r4 = !(typeof x === "string" || typeof x === "string") ? x.toFixed : x.substr;
65
- >r4 : (from: number, length?: number) => string
66
- >!(typeof x === "string" || typeof x === "string") ? x.toFixed : x.substr : (from: number, length?: number) => string
65
+ >r4 : (( from: number, length?: number) => string) | ((fractionDigits?: number) => string)
66
+ >!(typeof x === "string" || typeof x === "string") ? x.toFixed : x.substr : (( from: number, length?: number) => string) | ((fractionDigits?: number) => string)
67
67
>!(typeof x === "string" || typeof x === "string") : boolean
68
68
>(typeof x === "string" || typeof x === "string") : boolean
69
69
>typeof x === "string" || typeof x === "string" : boolean
0 commit comments