@@ -50,8 +50,24 @@ const Child: SFC<Props> = ({
5050>`name: ${name} props: ${JSON.stringify(props)}` : string
5151>name : "Apollo" | "Artemis" | "Dionysus" | "Persephone"
5252>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; }
5454>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; }
5656>props : {}
5757
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