main
Last change
on this file since e35d0e9 was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
462 bytes
|
Rev | Line | |
---|
[d24f17c] | 1 | import { At } from '../Any/At';
|
---|
| 2 | import { Replace } from '../Union/Replace';
|
---|
| 3 | import { x } from '../Any/x';
|
---|
| 4 | import { 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 | */
|
---|
| 14 | export 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.