You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// type Length<T extends readonly any[]> =// 여기까지만 하다가 length를 아는 법 서치하다가 알게 됨typeLength<Textendsreadonlyany[]>=T['length']
실제 값들을 타입으로서 사용할 수 있는데 그 점을 자꾸 까먹는 것 같음 ㅎ
43 - Exclude 🤔
typeMyExclude<T,U>=TextendsU ? never : T;
189 - Awaited 🤔
tslib 참고
/** * Recursively unwraps the "awaited type" of a type. Non-promise "thenables" should resolve to `never`. This emulates the behavior of `await`. */typeAwaited<T>=Textendsnull|undefined ? T : // special case for `null | undefined` when not in `--strictNullChecks` modeTextendsobject&{then(onfulfilled: infer F, ...args: infer _): any} ? // `await` only unwraps object types with a callable `then`. Non-object types are not unwrappedFextends((value: infer V, ...args: infer _)=>any) ? // if the argument to `then` is callable, extracts the first argumentAwaited<V> : // recursively unwrap the valuenever : // the argument to `then` was not callableT;// non-object or non-thenable
4 - Pick
7 - Readonly
11 -Tuple to Object
14 - First of Array
18 - Length of Tuple
43 - Exclude 🤔
189 - Awaited 🤔
268 - If
533 - Concat
898 - Includes
3057 - Push
3060 - Unshift
3312 - Parameters
The text was updated successfully, but these errors were encountered: