56 lines
3.3 KiB
Plaintext
56 lines
3.3 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?: (string | number)[] | 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?: (string | number)[] | null | undefined, space?: string | number | undefined): string; }
|
|
>value : null
|
|
>undefined : undefined
|
|
>2 : 2
|
|
|
|
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?: (string | number)[] | 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?: (string | number)[] | null | undefined, space?: string | number | undefined): string; }
|
|
>value : null
|
|
>null : null
|
|
>2 : 2
|
|
|
|
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?: (string | number)[] | 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?: (string | number)[] | null | undefined, space?: string | number | undefined): string; }
|
|
>value : null
|
|
>["a", 1] : (string | number)[]
|
|
>"a" : "a"
|
|
>1 : 1
|
|
>2 : 2
|
|
|
|
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?: (string | number)[] | 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?: (string | number)[] | null | undefined, space?: string | number | undefined): string; }
|
|
>value : null
|
|
>(k) => undefined : (k: string) => undefined
|
|
>k : string
|
|
>undefined : undefined
|
|
>2 : 2
|
|
|
|
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?: (string | number)[] | 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?: (string | number)[] | null | undefined, space?: string | number | undefined): string; }
|
|
>value : null
|
|
>undefined : undefined
|
|
>2 : 2
|
|
|