Replies: 1 comment
-
Hi! export type Select<U extends any, M extends any, match extends Match = 'default'> =
U extends unknown
? {1: U & M, 0: never}[Is<U, M, match>] // HERE IS THE DEAL
: never |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
First of all, thanks for this cool library! However, I wonder why you used
1
and0
for Boolean instead oftrue
andfalse
? Something like this causes an issue right now because the return parameter is not a real boolean:Did I miss anything?
Beta Was this translation helpful? Give feedback.
All reactions