4 ms·
If I understand correctly you want "new types" in typescript, which can be done either via a library or by hand rolling it: - https://github.com/gcanti/newtype
by emptysea 6y ago
If I understand correctly you want "new types" in typescript, which can be done either via a library or by hand rolling it:
- https://github.com/gcanti/newtype-ts https://github.com/gcanti/newtype-ts
- https://github.com/Microsoft/TypeScript/issues/4895#issuecomment-401067935 https://github.com/Microsoft/TypeScript/issues/4895#issuecom...
but it isn't as nice as say Python's `typing.NewType` or Haskell's `newtype`
- markdog12 6y agonewtype dart proposal: https://github.com/dart-lang/language/blob/master/working/static%20wrapper%20types/feature-specification.md https://github.com/dart-lang/language/blob/master/working/st...