main
Last change
on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
548 bytes
|
Rev | Line | |
---|
[d24f17c] | 1 | import { Match } from '../Any/_Internal';
|
---|
| 2 | import { Is } from '../Any/Is';
|
---|
| 3 | import { At } from '../Any/At';
|
---|
| 4 | import { 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 | */
|
---|
| 16 | export declare type Has<O extends object, K extends Key, M extends any = any, match extends Match = 'default'> = Is<At<O, K>, M, match>;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.