Commit 0ff3957
authored
Add all types in the
## 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#2514utils submodule as package-level exports (#25)1 parent 4a2a7b0 commit 0ff3957
2 files changed
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
10 | 14 | | |
11 | 15 | | |
12 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
| 11 | + | |
10 | 12 | | |
11 | 13 | | |
12 | 14 | | |
13 | 15 | | |
14 | 16 | | |
| 17 | + | |
15 | 18 | | |
| 19 | + | |
16 | 20 | | |
17 | 21 | | |
| 22 | + | |
18 | 23 | | |
19 | 24 | | |
| 25 | + | |
| 26 | + | |
20 | 27 | | |
21 | 28 | | |
0 commit comments