source: node_modules/ts-toolbelt/out/Object/Intersect.d.ts@ d24f17c

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: 501 bytes
Line 
1import { IntersectKeys } from './IntersectKeys';
2import { Match } from '../Any/_Internal';
3import { Pick } from './Pick';
4/**
5 * Get the intersecting fields of `O` & `O1`
6 * (If `match = 'default'`, no type checks are done)
7 * @param O to check similarities with
8 * @param O1 to check similarities against
9 * @returns [[Object]]
10 * @example
11 * ```ts
12 * ```
13 */
14export declare type Intersect<O extends object, O1 extends object, match extends Match = 'default'> = Pick<O, IntersectKeys<O, O1, match>>;
Note: See TracBrowser for help on using the repository browser.