Skip to content

Commit 916da80

Browse files
committed
Update JJU typings
1 parent ca7a16a commit 916da80

1 file changed

Lines changed: 15 additions & 3 deletions

File tree

  • libraries/node-core-library/typings/jju

‎libraries/node-core-library/typings/jju/jju.d.ts‎

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,24 @@
22
// Project: https://www.npmjs.com/package/jju
33
// Definitions by: pgonzal
44

5-
interface IJjuOptions {
5+
interface IJjuParseOptions {
66
reserved_keys? : 'ignore' | 'throw' | 'replace';
7-
mode?: 'json';
7+
null_prototype?: boolean;
88
reviver?: (key: any, value: any) => any;
9+
mode?: 'json';
10+
}
11+
12+
interface IJjuStringifyOptions {
13+
ascii?: boolean;
14+
indent?: string | number | boolean;
15+
quote_keys?: boolean;
16+
sort_keys?: boolean;
17+
replacer?: (key: string, value: any) => any;
18+
no_trailing_comma?: boolean;
19+
mode?: string | 'json';
920
}
1021

1122
declare module 'jju' {
12-
export function parse(text: string, options?: IJjuOptions): any;
23+
export function parse(text: string, options?: IJjuParseOptions): any;
24+
export function stringify(value: any, options?: IJjuStringifyOptions): string;
1325
}

0 commit comments

Comments
 (0)