UNPKG

cra-template-pi

Version:

A quick start Create React App with many auto implemented features

9 lines (8 loc) 245 B
/** * Returns all values of any key (nested or not) with an optional filter */ export type RecursiveAllValues<T, Filter = unknown> = T extends object ? { [P in keyof T]-?: RecursiveAllValues<T[P], Filter> }[keyof T] : T & Filter