source: node_modules/ts-toolbelt/out/Object/Omit.d.ts

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: 479 bytes
Line 
1import { _Pick } from './Pick';
2import { Exclude } from '../Union/Exclude';
3import { Key } from '../Any/Key';
4/**
5 * @hidden
6 */
7export declare type _Omit<O extends object, K extends Key> = _Pick<O, Exclude<keyof O, K>>;
8/**
9 * Remove out of `O` the fields of key `K`
10 * @param O to remove from
11 * @param K to chose fields
12 * @returns [[Object]]
13 * @example
14 * ```ts
15 * ```
16 */
17export declare type Omit<O extends object, K extends Key> = O extends unknown ? _Omit<O, K> : never;
Note: See TracBrowser for help on using the repository browser.