UNPKG

548 BTypeScriptView Raw
1import { Match } from '../Any/_Internal';
2import { Is } from '../Any/Is';
3import { At } from '../Any/At';
4import { Key } from '../Any/Key';
5/**
6 * Check whether `O` has a field of key `K` that matches `M`
7 * @param O to be inspected
8 * @param K to choose field
9 * @param M (?=`any`) to check field type
10 * @param match (?=`'default'`) to change precision
11 * @returns [[Boolean]]
12 * @example
13 * ```ts
14 * ```
15 */
16export declare type Has<O extends object, K extends Key, M extends any = any, match extends Match = 'default'> = Is<At<O, K>, M, match>;