feat: add Tagged for composable tagged types#672
feat: add Tagged for composable tagged types#672sindresorhus merged 1 commit intosindresorhus:mainfrom
Conversation
f4c7687 to
1b2a6bb
Compare
|
This looks very good 👍 |
|
You need to also add them to the readme. |
|
Some types like https://github.com/sindresorhus/type-fest/blob/main/source/exact.d.ts, https://github.com/sindresorhus/type-fest/blob/main/source/invariant-of.d.ts, and https://github.com/sindresorhus/type-fest/blob/main/source/conditional-pick-deep.d.ts have special handling of |
05069b4 to
3588e73
Compare
|
Ok, I think I addressed all the comments. For the three types you mentioned that use
|
|
Thanks ;) |
This adds two new types,
TaggedandUnwrapTagged, per #665.It also tweaks
UnwrapOpaqueso that it works on types produced byTagged(as well as still working on types produced byOpaque, of course). This is a small gesture at interoperability betweenOpaqueandTagged, to make it easier for codebases to migrate fromOpaquetoTagged.Fixes #665