UNPKG

type-plus

Version:
4 lines 283 B
import type { AnyRecord } from './AnyRecord.js'; export type HasKey<T, K, Then = true, Else = false> = K extends keyof T ? Then : Else; export declare function hasKey<T extends AnyRecord, K extends string>(subject: T, ...keys: K[]): HasKey<T, K>; //# sourceMappingURL=hasKey.d.ts.map