UNPKG

458 BTypeScriptView Raw
1import { SelectKeys } from './SelectKeys';
2import { Match } from '../Any/_Internal';
3/**
4 * Check whether `O` has fields that match `M`
5 * @param O to be inspected
6 * @param M to check field type
7 * @param match (?=`'default'`) to change precision
8 * @returns [[Boolean]]
9 * @example
10 * ```ts
11 * ```
12 */
13export declare type Includes<O extends object, M extends any, match extends Match = 'default'> = [
14 SelectKeys<O, M, match>
15] extends [never] ? 0 : 1;