@@ -50,8 +50,24 @@ const Child: SFC<Props> = ({
50
50
>`name: ${name} props: ${JSON.stringify(props)}` : string
51
51
>name : "Apollo" | "Artemis" | "Dionysus" | "Persephone"
52
52
>JSON.stringify(props) : string
53
- >JSON.stringify : { (value: any, replacer?: (key: string, value: any) => any, space?: string | number): string; (value: any, replacer?: (string | number)[], space?: string | number): string; }
53
+ >JSON.stringify : { (value: any, replacer?: (( key: string, value: any) => any) | undefined , space?: string | number | undefined ): string; (value: any, replacer?: (string | number)[] | null | undefined , space?: string | number | undefined ): string; }
54
54
>JSON : JSON
55
- >stringify : { (value: any, replacer?: (key: string, value: any) => any, space?: string | number): string; (value: any, replacer?: (string | number)[], space?: string | number): string; }
55
+ >stringify : { (value: any, replacer?: (( key: string, value: any) => any) | undefined , space?: string | number | undefined ): string; (value: any, replacer?: (string | number)[] | null | undefined , space?: string | number | undefined ): string; }
56
56
>props : {}
57
57
58
+ // Repro from #29189
59
+
60
+ declare function f(g: (as: string[]) => void): void
61
+ >f : (g: (as: string[]) => void) => void
62
+ >g : (as: string[]) => void
63
+ >as : string[]
64
+
65
+ f(([_1, _2 = undefined]) => undefined)
66
+ >f(([_1, _2 = undefined]) => undefined) : void
67
+ >f : (g: (as: string[]) => void) => void
68
+ >([_1, _2 = undefined]) => undefined : ([_1, _2]: string[]) => undefined
69
+ >_1 : string
70
+ >_2 : string | undefined
71
+ >undefined : undefined
72
+ >undefined : undefined
73
+
0 commit comments