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:
939 bytes
|
Rev | Line | |
---|
[d24f17c] | 1 | import { Patch as OPatch } from '../Object/Patch';
|
---|
| 2 | import { List } from './List';
|
---|
| 3 | import { Depth } from '../Object/_Internal';
|
---|
| 4 | import { BuiltIn } from '../Misc/BuiltIn';
|
---|
| 5 | import { Cast } from '../Any/Cast';
|
---|
| 6 | /**
|
---|
| 7 | * Complete the fields of `L` with the ones of `L1`. This is a version of
|
---|
| 8 | * [[Merge]] that does NOT handle optional fields, it only completes fields of `O`
|
---|
| 9 | * with the ones of `O1` if they don't exist.
|
---|
| 10 | *
|
---|
| 11 | * (⚠️ needs `--strictNullChecks` enabled)
|
---|
| 12 | * @param L to complete
|
---|
| 13 | * @param L1 to copy from
|
---|
| 14 | * @param depth (?=`'flat'`) 'deep' to do it deeply
|
---|
| 15 | * @param ignore (?=`BuiltIn`) types not to merge
|
---|
| 16 | * @param fill (?=`never`) types of `O` to be replaced with ones of `O1`
|
---|
| 17 | * @returns [[List]]
|
---|
| 18 | * @example
|
---|
| 19 | * ```ts
|
---|
| 20 | * ```
|
---|
| 21 | */
|
---|
| 22 | export declare type Patch<L extends List, L1 extends List, depth extends Depth = 'flat', ignore extends object = BuiltIn, fill extends any = never> = Cast<OPatch<L, L1, depth, ignore, fill>, List>;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.