source: node_modules/ts-toolbelt/out/Object/Modify.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: 462 bytes
Line 
1import { At } from '../Any/At';
2import { Replace } from '../Union/Replace';
3import { x } from '../Any/x';
4import { Exclude } from '../Union/Exclude';
5/**
6 * Modify `O` with `OMod` & the [[x]] placeholder
7 * @param O to copy from
8 * @param OMod to copy to
9 * @returns [[Object]]
10 * @example
11 * ```ts
12 * ```
13 */
14export declare type Modify<O extends object, OMod extends object> = {
15 [K in keyof OMod]: Replace<OMod[K], x, Exclude<At<O, K>, undefined>>;
16} & {};
Note: See TracBrowser for help on using the repository browser.