UNPKG

rambda

Version:

Lightweight faster alternative to Ramda

15 lines (13 loc) 357 B
import {Index} from '../Any/Index' import {Keys as UKeys} from '../Union/Keys' /** Get the keys of an **`object`** * @param O * @returns **`keyof`** * @example * ```ts * ``` */ export type Keys<O extends object> = (UKeys<O> | keyof O) & Index // Prevents `undefined` to appear in the keys // `| keyof O` fixes #50, broken by distribution