Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add all types in the
utils
submodule as package-level exports (#25)
## Motivation `snaps` repos have continued to expand its usage of `utils` types in the `superstruct` package. Unfortunately, the workaround of importing from `superstruct/dist/utils` is no longer available in the `@metamask/superstruct` fork, so importing new `utils` types will require new version releases going forward. To prevent this from blocking downstream development, this commit adds all currently available types in the `utils` submodule as package-level exports. ## Description - Newly exports the following types: `Assign`, `If`, `IsUnion`, `ObjectType`, `PartialObjectSchema`, `StructSchema`, `TupleSchema` ## References - Closes #26 - Blocking MetaMask/snaps#2445 - Blocking MetaMask/snaps#2514
- Loading branch information