ts-toolbelt
Version:
TypeScript's largest utility library
16 lines (15 loc) • 521 B
TypeScript
import { Match } from '../Any/_Internal';
import { Includes as OIncludes } from '../Object/Includes';
import { ObjectOf } from './ObjectOf';
import { List } from './List';
/**
* Check whether `L` has entries that match `M`
* @param L to be inspected
* @param M to check entry type
* @param match (?=`'default'`) to change precision
* @returns [[Boolean]]
* @example
* ```ts
* ```
*/
export declare type Includes<L extends List, M extends any, match extends Match = 'default'> = OIncludes<ObjectOf<L>, M, match>;