UNPKG

single-source-of-truth

Version:
6 lines (5 loc) 209 B
export type Path<Extension extends string = ''> = `${string}${Extension}`; export type MaybeArray<T> = T | T[]; export type Compute<T> = { [K in keyof T]: T[K] extends object ? Compute<T[K]> : T[K]; } & {};