cmux/node_modules/json-schema-to-ts/lib/utils/hasKeyIn.d.ts
2026-01-29 17:36:26 -08:00

8 lines
250 B
TypeScript

/**
* Returns `true` if object `O` has a property key in `K` (union), `false` if not
*
* @param O Object
* @param K Union of property keys
* @return Type
*/
export declare type HasKeyIn<O, K> = Extract<keyof O, K> extends never ? false : true;