main
Last change
on this file since d24f17c was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
458 bytes
|
Line | |
---|
1 | import { SelectKeys } from './SelectKeys';
|
---|
2 | import { 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 | */
|
---|
13 | export declare type Includes<O extends object, M extends any, match extends Match = 'default'> = [
|
---|
14 | SelectKeys<O, M, match>
|
---|
15 | ] extends [never] ? 0 : 1;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.