-
-
Notifications
You must be signed in to change notification settings - Fork 679
options to conditional-keys #1385
Copy link
Copy link
Open
Labels
Description
Type description + examples
the type already exists
https://github.com/sindresorhus/type-fest/blob/main/source/conditional-keys.d.ts
possibly we need
- append
deep?: booleanto fetch deep keys
to work similarly to this:
ConditionalKeys<Example, Condition, {deep: true}> = Paths<
ConditionalPickDeep<Base, Condition>
>- append
revert?: boolean(here need to come up with a better naming) to 'revert' extends condition:
ExtendsStrict<Base[Key], Condition> extends true ? Key : never=>ExtendsStrict<Condition, Base[Key]> extends true ? Key : never
Type source
No response
Search existing types and issues first
- I tried my best to look for it
Reactions are currently unavailable