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:
451 bytes
|
Line | |
---|
1 | import { Depth } from '../Object/_Internal';
|
---|
2 | import { ReadonlyPart } from '../Object/Readonly';
|
---|
3 | import { List } from './List';
|
---|
4 | import { Cast } from '../Any/Cast';
|
---|
5 | /**
|
---|
6 | * Make `L` readonly (deeply or not)
|
---|
7 | * @param L to make readonly
|
---|
8 | * @param depth (?=`'flat'`) 'deep' to do it deeply
|
---|
9 | * @returns [[List]]
|
---|
10 | * @example
|
---|
11 | * ```ts
|
---|
12 | * ```
|
---|
13 | */
|
---|
14 | export declare type Readonly<L extends List, depth extends Depth = 'flat'> = Cast<ReadonlyPart<L, depth>, List>;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.