forked from sidorares/json-bigint
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Updated lock file version * Upgraded mocha * Added type declaration * Updated repository section in package.json * Added notice to README * Incremented npm version to 1.0.3
- Loading branch information
1 parent
3391780
commit 7ee4d61
Showing
4 changed files
with
1,311 additions
and
650 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
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
type Option = { | ||
strict?: boolean; | ||
storeAsString?: boolean; | ||
alwaysParseAsBig?: boolean; | ||
useNativeBigInt?: boolean; | ||
protoAction?: 'error' | 'ignore' | 'preserve'; | ||
constructorAction?: 'error' | 'ignore' | 'preserve'; | ||
}; | ||
|
||
type JSONbigAPI = { | ||
stringify: typeof JSON.stringify; | ||
parse: typeof JSON.parse; | ||
} & ((option?: Option) => { | ||
stringify: typeof JSON.stringify; | ||
parse: typeof JSON.parse; | ||
}); | ||
|
||
|
||
declare const api: JSONbigAPI; | ||
export = api; |
Oops, something went wrong.