nominal
nominal copied to clipboard
🔒 The new way to do types in typescript.
```ts const M = Symbol(); export type Nominal = Type & { readonly [M]: [Name]; }; ``` Works with all the examples mentioned in readme.md check it out : https://codesandbox.io/s/nominal-types-l8k9ti?file=/src/nominal.ts
This project seems to be a simplified version of that one, from what I read you seem to be using similar approaches to make the magic happen. I haven't read...
- - Remove nominal and nominal.make
> ```ts import { nominal } from 'nominal-types'; // '"nominal-types"' has no exported member named 'nominal'. Did you mean 'Nominal'?ts(2724) ``` pnpm install nominal-types ```jsonc // package.json { "dependencies": {...