We've added opaque types in MetaMask/snaps#961. Those types are not testable using normal jest, but we can use tsd to write tests for types like we do in https://github.com/MetaMask/utils/blob/main/src/json.test-d.ts.
We should ensure that SemVerVersion and SemVerRange are not assignable to each other.
We've added opaque types in MetaMask/snaps#961. Those types are not testable using normal jest, but we can use tsd to write tests for types like we do in https://github.com/MetaMask/utils/blob/main/src/json.test-d.ts.
We should ensure that
SemVerVersionandSemVerRangeare not assignable to each other.