UNPKG

rambda

Version:

Lightweight faster alternative to Ramda

12 lines (11 loc) 182 B
/** Get the keys of a **union** * @param U * @returns **`keyof`** * @example * ```ts * ``` */ export type Keys<U extends any> = U extends unknown ? keyof U : never