56 lines
3.4 KiB
Plaintext
56 lines
3.4 KiB
Plaintext
=== tests/cases/compiler/json.stringify.ts ===
|
|
|
|
var value = null;
|
|
>value : null
|
|
>null : null
|
|
|
|
JSON.stringify(value, undefined, 2);
|
|
>JSON.stringify(value, undefined, 2) : string
|
|
>JSON.stringify : { (value: any, replacer?: ((key: string, value: any) => any) | undefined, space?: string | number | undefined): string; (value: any, replacer?: (number | string)[] | null | undefined, space?: string | number | undefined): string; }
|
|
>JSON : JSON
|
|
>stringify : { (value: any, replacer?: ((key: string, value: any) => any) | undefined, space?: string | number | undefined): string; (value: any, replacer?: (number | string)[] | null | undefined, space?: string | number | undefined): string; }
|
|
>value : null
|
|
>undefined : undefined
|
|
>2 : number
|
|
|
|
JSON.stringify(value, null, 2);
|
|
>JSON.stringify(value, null, 2) : string
|
|
>JSON.stringify : { (value: any, replacer?: ((key: string, value: any) => any) | undefined, space?: string | number | undefined): string; (value: any, replacer?: (number | string)[] | null | undefined, space?: string | number | undefined): string; }
|
|
>JSON : JSON
|
|
>stringify : { (value: any, replacer?: ((key: string, value: any) => any) | undefined, space?: string | number | undefined): string; (value: any, replacer?: (number | string)[] | null | undefined, space?: string | number | undefined): string; }
|
|
>value : null
|
|
>null : null
|
|
>2 : number
|
|
|
|
JSON.stringify(value, ["a", 1], 2);
|
|
>JSON.stringify(value, ["a", 1], 2) : string
|
|
>JSON.stringify : { (value: any, replacer?: ((key: string, value: any) => any) | undefined, space?: string | number | undefined): string; (value: any, replacer?: (number | string)[] | null | undefined, space?: string | number | undefined): string; }
|
|
>JSON : JSON
|
|
>stringify : { (value: any, replacer?: ((key: string, value: any) => any) | undefined, space?: string | number | undefined): string; (value: any, replacer?: (number | string)[] | null | undefined, space?: string | number | undefined): string; }
|
|
>value : null
|
|
>["a", 1] : (string | number)[]
|
|
>"a" : string
|
|
>1 : number
|
|
>2 : number
|
|
|
|
JSON.stringify(value, (k) => undefined, 2);
|
|
>JSON.stringify(value, (k) => undefined, 2) : string
|
|
>JSON.stringify : { (value: any, replacer?: ((key: string, value: any) => any) | undefined, space?: string | number | undefined): string; (value: any, replacer?: (number | string)[] | null | undefined, space?: string | number | undefined): string; }
|
|
>JSON : JSON
|
|
>stringify : { (value: any, replacer?: ((key: string, value: any) => any) | undefined, space?: string | number | undefined): string; (value: any, replacer?: (number | string)[] | null | undefined, space?: string | number | undefined): string; }
|
|
>value : null
|
|
>(k) => undefined : (k: string) => undefined
|
|
>k : string
|
|
>undefined : undefined
|
|
>2 : number
|
|
|
|
JSON.stringify(value, undefined, 2);
|
|
>JSON.stringify(value, undefined, 2) : string
|
|
>JSON.stringify : { (value: any, replacer?: ((key: string, value: any) => any) | undefined, space?: string | number | undefined): string; (value: any, replacer?: (number | string)[] | null | undefined, space?: string | number | undefined): string; }
|
|
>JSON : JSON
|
|
>stringify : { (value: any, replacer?: ((key: string, value: any) => any) | undefined, space?: string | number | undefined): string; (value: any, replacer?: (number | string)[] | null | undefined, space?: string | number | undefined): string; }
|
|
>value : null
|
|
>undefined : undefined
|
|
>2 : number
|
|
|