in typescript? Is there a utility function that'll yield the generic?
type ArrayItem<ArrType> = ArrType extends Array<infer T> ? T : never; type Inner = ArrayItem<ReturnType<typeof getStuff>>;
Обсуждают сегодня