UNPKG

ts-toolbelt

Version:

TypeScript's largest utility library

11 lines (10 loc) 237 B
import { List } from '../List/List'; /** * Get the keys of `A` * @param A * @returns [[Key]] * @example * ```ts * ``` */ export declare type Keys<A extends any> = A extends List ? Exclude<keyof A, keyof any[]> | number : keyof A;