UNPKG

type-fns

Version:

A set of types, type checks, and type guards for simpler, safer, and easier to read code.

2 lines (1 loc) 107 B
export declare const isKeyOf: <T extends Record<string, any>>(obj: T, key: PropertyKey) => key is keyof T;