Permutation
#8639
Replies: 1 comment
-
let E1: string & never extends never ? true : false // true |
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
-
type Permutation<T,U = T> = T extends never ? []:T extends T ? [T,...Permutation<Exclude<U,T>>]:never;
和
type Permutation<T,U = T> = [T] extends [never] ? []:T extends T ? [T,...Permutation<Exclude<U,T>>]:never;
的区别是什么???
Beta Was this translation helpful? Give feedback.
All reactions