@likec4/core 1.47.0 → 1.48.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/dist/_chunks/Builder.view-element.mjs +3284 -0
- package/dist/_chunks/LikeC4Model.d.mts +1287 -0
- package/dist/_chunks/LikeC4Styles.mjs +691 -0
- package/dist/_chunks/RichText.d.mts +84 -0
- package/dist/_chunks/RichText.mjs +148 -0
- package/dist/_chunks/_aux.d.mts +289 -0
- package/dist/_chunks/_aux.mjs +18 -0
- package/dist/_chunks/_types.d.mts +781 -0
- package/dist/_chunks/_types2.d.mts +38 -0
- package/dist/_chunks/assignTagColors.mjs +24 -0
- package/dist/_chunks/calcDriftsFromSnapshot.mjs +379 -0
- package/dist/_chunks/connection.mjs +0 -0
- package/dist/_chunks/const.d.mts +43 -0
- package/dist/_chunks/const.mjs +33 -0
- package/dist/_chunks/expression-model.d.mts +192 -0
- package/dist/_chunks/expression-model.mjs +103 -0
- package/dist/_chunks/expression.d.mts +347 -0
- package/dist/_chunks/expression.mjs +107 -0
- package/dist/_chunks/find.d.mts +82 -0
- package/dist/_chunks/find.mjs +646 -0
- package/dist/_chunks/find2.d.mts +78 -0
- package/dist/_chunks/find2.mjs +287 -0
- package/dist/_chunks/fqnRef.d.mts +58 -0
- package/dist/_chunks/fqnRef.mjs +41 -0
- package/dist/_chunks/geometry.mjs +335 -0
- package/dist/_chunks/index.d.mts +169 -0
- package/dist/_chunks/index2.d.mts +937 -0
- package/dist/_chunks/index3.d.mts +146 -0
- package/dist/_chunks/index4.d.mts +62 -0
- package/dist/_chunks/index5.d.mts +42 -0
- package/dist/_chunks/index6.d.mts +43 -0
- package/dist/{shared/core.OtRNdMxy.d.mts → _chunks/index7.d.mts} +113 -197
- package/dist/_chunks/index8.d.mts +144 -0
- package/dist/_chunks/invariant.mjs +18 -0
- package/dist/_chunks/iterable.mjs +146 -0
- package/dist/_chunks/libs/@mantine/colors-generator.mjs +3416 -0
- package/dist/_chunks/libs/@ungap/structured-clone.mjs +213 -0
- package/dist/_chunks/libs/bail.mjs +14 -0
- package/dist/_chunks/libs/ccount.mjs +25 -0
- package/dist/_chunks/libs/character-entities-html4.mjs +263 -0
- package/dist/_chunks/libs/character-entities-legacy.mjs +117 -0
- package/dist/_chunks/libs/character-entities.mjs +2136 -0
- package/dist/_chunks/libs/comma-separated-tokens.mjs +18 -0
- package/dist/_chunks/libs/decode-named-character-reference.mjs +21 -0
- package/dist/_chunks/libs/defu.mjs +42 -0
- package/dist/_chunks/libs/devlop.mjs +5 -0
- package/dist/_chunks/libs/escape-string-regexp.mjs +8 -0
- package/dist/_chunks/libs/extend.mjs +77 -0
- package/dist/_chunks/libs/graphology-dag.mjs +703 -0
- package/dist/_chunks/libs/graphology-types.d.mts +601 -0
- package/dist/_chunks/libs/graphology.d.mts +6 -0
- package/dist/_chunks/libs/graphology.mjs +4565 -0
- package/dist/_chunks/libs/hast-util-sanitize.mjs +863 -0
- package/dist/_chunks/libs/hast-util-to-html.mjs +2696 -0
- package/dist/_chunks/libs/is-plain-obj.mjs +9 -0
- package/dist/_chunks/libs/longest-streak.mjs +30 -0
- package/dist/_chunks/libs/markdown-table.mjs +290 -0
- package/dist/_chunks/libs/mdast-util-find-and-replace.mjs +653 -0
- package/dist/_chunks/libs/mdast-util-from-markdown.mjs +8522 -0
- package/dist/_chunks/libs/mdast-util-gfm.mjs +2393 -0
- package/dist/_chunks/libs/mdast-util-to-hast.mjs +1803 -0
- package/dist/_chunks/libs/micromark-extension-gfm.mjs +2243 -0
- package/dist/_chunks/libs/mnemonist.d.mts +254 -0
- package/dist/_chunks/libs/mnemonist.mjs +1978 -0
- package/dist/_chunks/libs/natural-compare-lite.mjs +42 -0
- package/dist/_chunks/libs/rehype-sanitize.mjs +29 -0
- package/dist/_chunks/libs/rehype-stringify.mjs +34 -0
- package/dist/_chunks/libs/remark-gfm.mjs +36 -0
- package/dist/_chunks/libs/remark-github-blockquote-alert.mjs +100 -0
- package/dist/_chunks/libs/remark-parse.mjs +39 -0
- package/dist/_chunks/libs/remark-rehype.mjs +171 -0
- package/dist/_chunks/libs/remeda.mjs +702 -0
- package/dist/_chunks/libs/trough.mjs +158 -0
- package/dist/_chunks/libs/unified.mjs +2212 -0
- package/dist/_chunks/mnemonist.d.mts +1 -0
- package/dist/_chunks/mnemonist.mjs +0 -0
- package/dist/_chunks/model.mjs +1898 -0
- package/dist/_chunks/model2.mjs +0 -0
- package/dist/_chunks/relationships-view.mjs +132 -0
- package/dist/_chunks/rolldown-runtime.mjs +42 -0
- package/dist/{shared/core.C_3y3eqV.d.mts → _chunks/scalar.d.mts} +13 -43
- package/dist/_chunks/scalar.mjs +84 -0
- package/dist/_chunks/utils.mjs +483 -0
- package/dist/builder/index.d.mts +11 -775
- package/dist/builder/index.mjs +631 -1022
- package/dist/compute-view/index.d.mts +85 -56
- package/dist/compute-view/index.mjs +247 -214
- package/dist/compute-view/relationships-view/index.d.mts +16 -51
- package/dist/compute-view/relationships-view/index.mjs +6 -184
- package/dist/geometry/index.d.mts +2 -109
- package/dist/geometry/index.mjs +2 -327
- package/dist/index.d.mts +18 -20
- package/dist/index.mjs +27 -18
- package/dist/model/connection/deployment/index.d.mts +12 -15
- package/dist/model/connection/deployment/index.mjs +9 -2
- package/dist/model/connection/index.d.mts +14 -75
- package/dist/model/connection/index.mjs +10 -3
- package/dist/model/connection/model/index.d.mts +12 -15
- package/dist/model/connection/model/index.mjs +8 -2
- package/dist/model/index.d.mts +15 -57
- package/dist/model/index.mjs +11 -4
- package/dist/styles/index.d.mts +9 -117
- package/dist/styles/index.mjs +26 -59
- package/dist/types/RichText.d.mts +3 -0
- package/dist/types/RichText.mjs +7 -0
- package/dist/types/_aux.d.mts +3 -4
- package/dist/types/_aux.mjs +2 -7
- package/dist/types/expression-model.d.mts +6 -190
- package/dist/types/expression-model.mjs +6 -108
- package/dist/types/expression.d.mts +5 -6
- package/dist/types/expression.mjs +6 -112
- package/dist/types/fqnRef.d.mts +4 -60
- package/dist/types/fqnRef.mjs +6 -44
- package/dist/types/index.d.mts +9 -47
- package/dist/types/index.mjs +14 -16
- package/dist/types/scalar.d.mts +2 -2
- package/dist/types/scalar.mjs +7 -4
- package/dist/utils/graphology/index.d.mts +2 -1864
- package/dist/utils/graphology/index.mjs +3 -1
- package/dist/utils/index.d.mts +11 -124
- package/dist/utils/index.mjs +16 -43
- package/dist/utils/iterable/index.d.mts +9 -132
- package/dist/utils/iterable/index.mjs +2 -61
- package/dist/utils/mnemonist.d.mts +2 -0
- package/dist/utils/mnemonist.mjs +12 -0
- package/package.json +17 -22
- package/compute-view/relationships/package.json +0 -4
- package/dist/shared/core.3ZhnKAlZ.mjs +0 -106
- package/dist/shared/core.78IWAHAE.mjs +0 -332
- package/dist/shared/core.B85MJLTf.mjs +0 -5
- package/dist/shared/core.BFd1lU9R.mjs +0 -29
- package/dist/shared/core.BKlholso.mjs +0 -3
- package/dist/shared/core.BNN-3vPH.mjs +0 -1255
- package/dist/shared/core.BPGOjone.d.mts +0 -46
- package/dist/shared/core.BP_QHEXs.mjs +0 -785
- package/dist/shared/core.BbE4y-yl.mjs +0 -177
- package/dist/shared/core.Bdy3hhTc.mjs +0 -28382
- package/dist/shared/core.BfCKSW-g.d.mts +0 -1266
- package/dist/shared/core.BhNcrwzK.mjs +0 -7
- package/dist/shared/core.BkVA6gjl.mjs +0 -5
- package/dist/shared/core.BoYfZOBm.mjs +0 -3
- package/dist/shared/core.BsSXS-_R.mjs +0 -7
- package/dist/shared/core.C3JowhaZ.mjs +0 -32
- package/dist/shared/core.C4x8aaWa.mjs +0 -27
- package/dist/shared/core.CAgYpDtM.d.mts +0 -98
- package/dist/shared/core.CHf8VEa3.mjs +0 -1206
- package/dist/shared/core.CLSZtnFh.mjs +0 -69
- package/dist/shared/core.CbT8JVYL.mjs +0 -5
- package/dist/shared/core.CdNCAwq7.mjs +0 -176
- package/dist/shared/core.CmGY9blO.mjs +0 -6717
- package/dist/shared/core.CmPXpJ8l.mjs +0 -21
- package/dist/shared/core.Coi_LOUZ.mjs +0 -7
- package/dist/shared/core.CqAJJpK_.mjs +0 -3
- package/dist/shared/core.CywrQs86.d.mts +0 -31
- package/dist/shared/core.D00YbOhQ.d.mts +0 -300
- package/dist/shared/core.D0WZutNd.mjs +0 -94
- package/dist/shared/core.D4npX2q8.mjs +0 -18
- package/dist/shared/core.DB0Ue5Wx.d.mts +0 -70
- package/dist/shared/core.DC5IAaDT.d.mts +0 -334
- package/dist/shared/core.DE9qzhn8.d.mts +0 -83
- package/dist/shared/core.DGcIbsj4.mjs +0 -3946
- package/dist/shared/core.DH7TXqXf.mjs +0 -136
- package/dist/shared/core.DKhRkHRN.d.mts +0 -41
- package/dist/shared/core.DRJma0Ol.mjs +0 -22
- package/dist/shared/core.DU5SRqNF.mjs +0 -2209
- package/dist/shared/core.DXhDWKFZ.d.mts +0 -3
- package/dist/shared/core.DbfO90vF.mjs +0 -434
- package/dist/shared/core.DcS-0zys.mjs +0 -10
- package/dist/shared/core.Dh119QSP.mjs +0 -4995
- package/dist/shared/core.DjcWextK.mjs +0 -1371
- package/dist/shared/core.Dojz4bvg.d.mts +0 -504
- package/dist/shared/core.FZ305VYd.mjs +0 -21
- package/dist/shared/core.RfnaEmgA.mjs +0 -7
- package/dist/shared/core.btEq3i3f.mjs +0 -300
- package/dist/shared/core.oSV6SRfk.mjs +0 -13
- package/dist/shared/core.om36dXXW.mjs +0 -41
- package/dist/shared/core.osFs8tU7.d.mts +0 -466
- package/dist/shared/core.q10OP9oJ.mjs +0 -5
- package/dist/shared/core.tpvDGvdC.d.mts +0 -87
- package/dist/shared/core.uFk_o9X6.mjs +0 -13
|
@@ -0,0 +1,254 @@
|
|
|
1
|
+
//#region ../../node_modules/.pnpm/mnemonist@0.40.3_patch_hash=70301b9c235e13bc146bb9528b7979c278952196d5dac8048ab3850adac8f4cf/node_modules/mnemonist/default-map.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Mnemonist DefaultMap Typings
|
|
4
|
+
* =============================
|
|
5
|
+
*/
|
|
6
|
+
declare class DefaultMap<K, V> implements Iterable<[K, V]> {
|
|
7
|
+
// Members
|
|
8
|
+
size: number; // Constructor
|
|
9
|
+
constructor(factory: (key: K, index: number) => V); // Methods
|
|
10
|
+
clear(): void;
|
|
11
|
+
set(key: K, value: V): this;
|
|
12
|
+
delete(key: K): boolean;
|
|
13
|
+
has(key: K): boolean;
|
|
14
|
+
get(key: K): V;
|
|
15
|
+
peek(key: K): V | undefined;
|
|
16
|
+
forEach(callback: (value: V, key: K, map: this) => void, scope?: any): void;
|
|
17
|
+
keys(): IterableIterator<K>;
|
|
18
|
+
values(): IterableIterator<V>;
|
|
19
|
+
entries(): IterableIterator<[K, V]>;
|
|
20
|
+
[Symbol.iterator](): IterableIterator<[K, V]>;
|
|
21
|
+
inspect(): any; // Statics
|
|
22
|
+
static autoIncrement(): number;
|
|
23
|
+
}
|
|
24
|
+
//#endregion
|
|
25
|
+
//#region ../../node_modules/.pnpm/mnemonist@0.40.3_patch_hash=70301b9c235e13bc146bb9528b7979c278952196d5dac8048ab3850adac8f4cf/node_modules/mnemonist/default-weak-map.d.ts
|
|
26
|
+
/**
|
|
27
|
+
* Mnemonist DefaultWeakMap Typings
|
|
28
|
+
* ================================
|
|
29
|
+
*/
|
|
30
|
+
declare class DefaultWeakMap<K extends object, V> {
|
|
31
|
+
// Constructor
|
|
32
|
+
constructor(factory: (key: K) => V); // Methods
|
|
33
|
+
clear(): void;
|
|
34
|
+
set(key: K, value: V): this;
|
|
35
|
+
delete(key: K): boolean;
|
|
36
|
+
has(key: K): boolean;
|
|
37
|
+
get(key: K): V;
|
|
38
|
+
peek(key: K): V | undefined;
|
|
39
|
+
inspect(): any;
|
|
40
|
+
}
|
|
41
|
+
//#endregion
|
|
42
|
+
//#region ../../node_modules/.pnpm/mnemonist@0.40.3_patch_hash=70301b9c235e13bc146bb9528b7979c278952196d5dac8048ab3850adac8f4cf/node_modules/mnemonist/linked-list.d.ts
|
|
43
|
+
/**
|
|
44
|
+
* Mnemonist LinkedList Typings
|
|
45
|
+
* =============================
|
|
46
|
+
*/
|
|
47
|
+
declare class LinkedList<T> implements Iterable<T> {
|
|
48
|
+
// Members
|
|
49
|
+
size: number; // Constructor
|
|
50
|
+
constructor(); // Methods
|
|
51
|
+
clear(): void;
|
|
52
|
+
first(): T | undefined;
|
|
53
|
+
last(): T | undefined;
|
|
54
|
+
peek(): T | undefined;
|
|
55
|
+
push(value: T): number;
|
|
56
|
+
shift(): T | undefined;
|
|
57
|
+
unshift(value: T): number;
|
|
58
|
+
forEach(callback: (value: T, index: number, list: this) => void, scope?: any): void;
|
|
59
|
+
toArray(): Array<T>;
|
|
60
|
+
values(): IterableIterator<T>;
|
|
61
|
+
entries(): IterableIterator<[number, T]>;
|
|
62
|
+
[Symbol.iterator](): IterableIterator<T>;
|
|
63
|
+
toString(): string;
|
|
64
|
+
toJSON(): Array<T>;
|
|
65
|
+
inspect(): any; // Statics
|
|
66
|
+
static from<I>(iterable: Iterable<I> | {
|
|
67
|
+
[key: string]: I;
|
|
68
|
+
}): LinkedList<I>;
|
|
69
|
+
}
|
|
70
|
+
//#endregion
|
|
71
|
+
//#region ../../node_modules/.pnpm/mnemonist@0.40.3_patch_hash=70301b9c235e13bc146bb9528b7979c278952196d5dac8048ab3850adac8f4cf/node_modules/mnemonist/queue.d.ts
|
|
72
|
+
/**
|
|
73
|
+
* Mnemonist Queue Typings
|
|
74
|
+
* ========================
|
|
75
|
+
*/
|
|
76
|
+
declare class Queue<T> implements Iterable<T> {
|
|
77
|
+
// Members
|
|
78
|
+
size: number; // Constructor
|
|
79
|
+
constructor(); // Methods
|
|
80
|
+
clear(): void;
|
|
81
|
+
enqueue(item: T): number;
|
|
82
|
+
dequeue(): T | undefined;
|
|
83
|
+
peek(): T | undefined;
|
|
84
|
+
forEach(callback: (item: T, index: number, queue: this) => void, scope?: any): void;
|
|
85
|
+
toArray(): Array<T>;
|
|
86
|
+
values(): IterableIterator<T>;
|
|
87
|
+
entries(): IterableIterator<[number, T]>;
|
|
88
|
+
[Symbol.iterator](): IterableIterator<T>;
|
|
89
|
+
toString(): string;
|
|
90
|
+
toJSON(): Array<T>;
|
|
91
|
+
inspect(): any; // Statics
|
|
92
|
+
static from<I>(iterable: Iterable<I> | {
|
|
93
|
+
[key: string]: I;
|
|
94
|
+
}): Queue<I>;
|
|
95
|
+
static of<I>(...items: Array<I>): Queue<I>;
|
|
96
|
+
}
|
|
97
|
+
//#endregion
|
|
98
|
+
//#region ../../node_modules/.pnpm/mnemonist@0.40.3_patch_hash=70301b9c235e13bc146bb9528b7979c278952196d5dac8048ab3850adac8f4cf/node_modules/mnemonist/multi-map.d.ts
|
|
99
|
+
/**
|
|
100
|
+
* Mnemonist MultiMap Typings
|
|
101
|
+
* ===========================
|
|
102
|
+
*/
|
|
103
|
+
interface MultiMap<K, V, C extends V[] | Set<V> = V[]> extends Iterable<[K, V]> {
|
|
104
|
+
// Members
|
|
105
|
+
dimension: number;
|
|
106
|
+
size: number; // Methods
|
|
107
|
+
clear(): void;
|
|
108
|
+
set(key: K, value: V): this;
|
|
109
|
+
delete(key: K): boolean;
|
|
110
|
+
remove(key: K, value: V): boolean;
|
|
111
|
+
has(key: K): boolean;
|
|
112
|
+
get(key: K): C | undefined;
|
|
113
|
+
multiplicity(key: K): number;
|
|
114
|
+
forEach(callback: (value: V, key: K, map: this) => void, scope?: any): void;
|
|
115
|
+
forEachAssociation(callback: (value: C, key: K, map: this) => void, scope?: any): void;
|
|
116
|
+
keys(): IterableIterator<K>;
|
|
117
|
+
values(): IterableIterator<V>;
|
|
118
|
+
entries(): IterableIterator<[K, V]>;
|
|
119
|
+
containers(): IterableIterator<C>;
|
|
120
|
+
associations(): IterableIterator<[K, C]>;
|
|
121
|
+
[Symbol.iterator](): IterableIterator<[K, V]>;
|
|
122
|
+
inspect(): any;
|
|
123
|
+
toJSON(): any;
|
|
124
|
+
}
|
|
125
|
+
interface MultiMapConstructor {
|
|
126
|
+
new <K, V>(container: SetConstructor): MultiMap<K, V, Set<V>>;
|
|
127
|
+
new <K, V>(container?: ArrayConstructor): MultiMap<K, V, V[]>;
|
|
128
|
+
from<K, V>(iterable: Iterable<[K, V]> | {
|
|
129
|
+
[key: string]: V;
|
|
130
|
+
}, Container: SetConstructor): MultiMap<K, V, Set<V>>;
|
|
131
|
+
from<K, V>(iterable: Iterable<[K, V]> | {
|
|
132
|
+
[key: string]: V;
|
|
133
|
+
}, Container?: ArrayConstructor): MultiMap<K, V, V[]>;
|
|
134
|
+
}
|
|
135
|
+
declare const MultiMap: MultiMapConstructor;
|
|
136
|
+
//#endregion
|
|
137
|
+
//#region ../../node_modules/.pnpm/mnemonist@0.40.3_patch_hash=70301b9c235e13bc146bb9528b7979c278952196d5dac8048ab3850adac8f4cf/node_modules/mnemonist/stack.d.ts
|
|
138
|
+
/**
|
|
139
|
+
* Mnemonist Stack Typings
|
|
140
|
+
* ========================
|
|
141
|
+
*/
|
|
142
|
+
declare class Stack<T> implements Iterable<T> {
|
|
143
|
+
// Members
|
|
144
|
+
size: number; // Constructor
|
|
145
|
+
constructor(); // Methods
|
|
146
|
+
clear(): void;
|
|
147
|
+
push(item: T): number;
|
|
148
|
+
pop(): T | undefined;
|
|
149
|
+
peek(): T | undefined;
|
|
150
|
+
forEach(callback: (item: T, index: number, stack: this) => void, scope?: any): void;
|
|
151
|
+
toArray(): Array<T>;
|
|
152
|
+
values(): IterableIterator<T>;
|
|
153
|
+
entries(): IterableIterator<[number, T]>;
|
|
154
|
+
[Symbol.iterator](): IterableIterator<T>;
|
|
155
|
+
toString(): string;
|
|
156
|
+
toJSON(): Array<T>;
|
|
157
|
+
inspect(): any; // Statics
|
|
158
|
+
static from<I>(iterable: Iterable<I> | {
|
|
159
|
+
[key: string]: I;
|
|
160
|
+
}): Stack<I>;
|
|
161
|
+
static of<I>(...items: Array<I>): Stack<I>;
|
|
162
|
+
}
|
|
163
|
+
//#endregion
|
|
164
|
+
//#region ../../node_modules/.pnpm/mnemonist@0.40.3_patch_hash=70301b9c235e13bc146bb9528b7979c278952196d5dac8048ab3850adac8f4cf/node_modules/mnemonist/bi-map.d.ts
|
|
165
|
+
/**
|
|
166
|
+
* Mnemonist BiMap Typings
|
|
167
|
+
* ========================
|
|
168
|
+
*/
|
|
169
|
+
declare class InverseMap<K, V> implements Iterable<[K, V]> {
|
|
170
|
+
// Members
|
|
171
|
+
size: number;
|
|
172
|
+
inverse: BiMap<V, K>; // Constructor
|
|
173
|
+
constructor(original: BiMap<K, V>); // Methods
|
|
174
|
+
clear(): void;
|
|
175
|
+
set(key: K, value: V): this;
|
|
176
|
+
delete(key: K): boolean;
|
|
177
|
+
has(key: K): boolean;
|
|
178
|
+
get(key: K): V | undefined;
|
|
179
|
+
forEach(callback: (value: V, key: K, map: this) => void, scope?: any): void;
|
|
180
|
+
keys(): IterableIterator<K>;
|
|
181
|
+
values(): IterableIterator<V>;
|
|
182
|
+
entries(): IterableIterator<[K, V]>;
|
|
183
|
+
[Symbol.iterator](): IterableIterator<[K, V]>;
|
|
184
|
+
inspect(): any;
|
|
185
|
+
}
|
|
186
|
+
declare class BiMap<K, V> implements Iterable<[K, V]> {
|
|
187
|
+
// Members
|
|
188
|
+
size: number;
|
|
189
|
+
inverse: InverseMap<V, K>; // Constructor
|
|
190
|
+
constructor(); // Methods
|
|
191
|
+
clear(): void;
|
|
192
|
+
set(key: K, value: V): this;
|
|
193
|
+
delete(key: K): boolean;
|
|
194
|
+
has(key: K): boolean;
|
|
195
|
+
get(key: K): V | undefined;
|
|
196
|
+
forEach(callback: (value: V, key: K, map: this) => void, scope?: any): void;
|
|
197
|
+
keys(): IterableIterator<K>;
|
|
198
|
+
values(): IterableIterator<V>;
|
|
199
|
+
entries(): IterableIterator<[K, V]>;
|
|
200
|
+
[Symbol.iterator](): IterableIterator<[K, V]>;
|
|
201
|
+
inspect(): any; // Statics
|
|
202
|
+
static from<I, J>(iterable: Iterable<[I, J]> | {
|
|
203
|
+
[key: string]: J;
|
|
204
|
+
}): BiMap<I, J>;
|
|
205
|
+
}
|
|
206
|
+
//#endregion
|
|
207
|
+
//#region ../../node_modules/.pnpm/mnemonist@0.40.3_patch_hash=70301b9c235e13bc146bb9528b7979c278952196d5dac8048ab3850adac8f4cf/node_modules/mnemonist/utils/types.d.ts
|
|
208
|
+
/**
|
|
209
|
+
* Mnemonist Generic Types
|
|
210
|
+
* ========================
|
|
211
|
+
*
|
|
212
|
+
* Collection of types used throughout the library.
|
|
213
|
+
*/
|
|
214
|
+
interface IArrayLike {
|
|
215
|
+
length: number;
|
|
216
|
+
slice(from: number, to?: number): IArrayLike;
|
|
217
|
+
}
|
|
218
|
+
type ArrayLike = IArrayLike | ArrayBuffer;
|
|
219
|
+
interface IArrayLikeConstructor {
|
|
220
|
+
new (...args: any[]): ArrayLike;
|
|
221
|
+
}
|
|
222
|
+
//#endregion
|
|
223
|
+
//#region ../../node_modules/.pnpm/mnemonist@0.40.3_patch_hash=70301b9c235e13bc146bb9528b7979c278952196d5dac8048ab3850adac8f4cf/node_modules/mnemonist/lru-map.d.ts
|
|
224
|
+
declare class LRUMap<K, V> implements Iterable<[K, V]> {
|
|
225
|
+
// Members
|
|
226
|
+
capacity: number;
|
|
227
|
+
size: number; // Constructor
|
|
228
|
+
constructor(capacity: number);
|
|
229
|
+
constructor(KeyArrayClass: IArrayLikeConstructor, ValueArrayClass: IArrayLikeConstructor, capacity: number); // Methods
|
|
230
|
+
clear(): void;
|
|
231
|
+
set(key: K, value: V): this;
|
|
232
|
+
setpop(key: K, value: V): {
|
|
233
|
+
evicted: boolean;
|
|
234
|
+
key: K;
|
|
235
|
+
value: V;
|
|
236
|
+
};
|
|
237
|
+
get(key: K): V | undefined;
|
|
238
|
+
peek(key: K): V | undefined;
|
|
239
|
+
has(key: K): boolean;
|
|
240
|
+
forEach(callback: (value: V, key: K, cache: this) => void, scope?: any): void;
|
|
241
|
+
keys(): IterableIterator<K>;
|
|
242
|
+
values(): IterableIterator<V>;
|
|
243
|
+
entries(): IterableIterator<[K, V]>;
|
|
244
|
+
[Symbol.iterator](): IterableIterator<[K, V]>;
|
|
245
|
+
inspect(): any; // Statics
|
|
246
|
+
static from<I, J>(iterable: Iterable<[I, J]> | {
|
|
247
|
+
[key: string]: J;
|
|
248
|
+
}, KeyArrayClass: IArrayLikeConstructor, ValueArrayClass: IArrayLikeConstructor, capacity?: number): LRUMap<I, J>;
|
|
249
|
+
static from<I, J>(iterable: Iterable<[I, J]> | {
|
|
250
|
+
[key: string]: J;
|
|
251
|
+
}, capacity?: number): LRUMap<I, J>;
|
|
252
|
+
}
|
|
253
|
+
//#endregion
|
|
254
|
+
export { Queue as a, DefaultMap as c, MultiMap as i, BiMap as n, LinkedList as o, Stack as r, DefaultWeakMap as s, LRUMap as t };
|