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