-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: add max depth limit and max edges limit (#56)
Co-authored-by: Matus Sabo <lamanabie@gmail.com>
- Loading branch information
1 parent
377166e
commit ce7db51
Showing
6 changed files
with
382 additions
and
138 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ | |
node_modules/ | ||
npm-debug.log | ||
yarn.lock | ||
package-lock.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,23 @@ | ||
declare function stringify(value: any, replacer?: (key: string, value: any) => any, space?: string | number): string; | ||
declare function stringify( | ||
value: any, | ||
replacer?: (key: string, value: any) => any, | ||
space?: string | number, | ||
options?: { depthLimit: number | undefined; edgesLimit: number | undefined } | ||
): string; | ||
|
||
declare namespace stringify { | ||
export function stable(value: any, replacer?: (key: string, value: any) => any, space?: string | number): string; | ||
export function stableStringify(value: any, replacer?: (key: string, value: any) => any, space?: string | number): string; | ||
export function stable( | ||
value: any, | ||
replacer?: (key: string, value: any) => any, | ||
space?: string | number, | ||
options?: { depthLimit: number | undefined; edgesLimit: number | undefined } | ||
): string; | ||
export function stableStringify( | ||
value: any, | ||
replacer?: (key: string, value: any) => any, | ||
space?: string | number, | ||
options?: { depthLimit: number | undefined; edgesLimit: number | undefined } | ||
): string; | ||
} | ||
|
||
export default stringify; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.