generated from MetaMask/metamask-module-template
-
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add struct utils for validating JSON objects with optional values (#136)
* Add struct utils for validating JSON objects with optional values * Add type tests * Update existing structs to use jsonObject struct * Add test for coverage * Fix type of InferWithParams * Rename to object and exactOptional * Fix type test * Remove unused imports * Rename test names * Address review comments * Update src/json.test.ts Co-authored-by: Elliot Winkler <elliot.winkler@gmail.com> * Update src/json.ts Co-authored-by: Elliot Winkler <elliot.winkler@gmail.com> * Update snapshots * Move some tests --------- Co-authored-by: Elliot Winkler <elliot.winkler@gmail.com>
- Loading branch information
Showing
5 changed files
with
339 additions
and
10 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
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.