Closed hyeyoonS closed 2 months ago
type TupleToObject<T extends readonly any[]> = {
[K in T[number]]: K;
};
type TupleToObject<T extends readonly PropertyKey[]> = {
[P in T[number]]: P
}
type TupleToObject<T extends readonly PropertyKey[]> = {
[P in T[number]]: P
}
Tuple to Object
![#object-keys](https://img.shields.io/badge/-%23object--keys-999)
๋ฐฐ์ด(ํํ)์ ๋ฐ์, ๊ฐ ์์์ ๊ฐ์ key/value๋ก ๊ฐ๋ ์ค๋ธ์ ํธ ํ์ ์ ๋ฐํํ๋ ํ์ ์ ๊ตฌํํ์ธ์.
์์:
๊ด๋ จ๋ ๋ฌธ์ ๋ค