interface Props { a: string b: number c: Date d: string}type StringOnly = ? // a | d이런식으로 특정 타입을 가진 것만 키로 뽑아올수 있나요?
https://www.typescriptlang.org/docs/handbook/2/keyof-types.html
이런거?
type StringOnly = { [K in keyof Props]: Props[K] extends string ? K : never; }[keyof Props];
와 감사합니다
지랄맞는 흑마법질 하지마라 병신같으니깐
이게 왜 흑마법?