재귀 타입 - ChoDragon9/posts GitHub Wiki
커뮤니티에서 재귀 타입 답변본것 정리
// Written by Seungro Lee
type SizedTuple<
Type,
Size extends number,
Result extends Type[] = []
> = Result["length"] extends Size ? Result : SizedTuple<Type, Size, [...Result, Type]>;
type TenString = SizedTuple<string, 10>;