@dungarees/core 0.11.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/package.json ADDED
@@ -0,0 +1,481 @@
1
+ {
2
+ "name": "@dungarees/core",
3
+ "engines": {
4
+ "node": ">=22.0.0"
5
+ },
6
+ "scripts": {
7
+ "type-check": "tsc --noEmit"
8
+ },
9
+ "type": "module",
10
+ "devDependencies": {
11
+ "react": "^19.1.0",
12
+ "rxjs-marbles": "^7.0.1",
13
+ "typescript": "^5.9.3",
14
+ "vitest": "^3.0.2"
15
+ },
16
+ "author": "info@productkind.com",
17
+ "license": "MIT",
18
+ "version": "0.11.0",
19
+ "exports": {
20
+ "./application.ts": {
21
+ "import": "./application.js",
22
+ "types": "./application.d.ts"
23
+ },
24
+ "./fake.test.ts": {
25
+ "import": "./fake.test.js",
26
+ "types": "./fake.test.d.ts"
27
+ },
28
+ "./fake.ts": {
29
+ "import": "./fake.js",
30
+ "types": "./fake.d.ts"
31
+ },
32
+ "./marbles-vitest.test.ts": {
33
+ "import": "./marbles-vitest.test.js",
34
+ "types": "./marbles-vitest.test.d.ts"
35
+ },
36
+ "./marbles-vitest.ts": {
37
+ "import": "./marbles-vitest.js",
38
+ "types": "./marbles-vitest.d.ts"
39
+ },
40
+ "./marbles.test.ts": {
41
+ "import": "./marbles.test.js",
42
+ "types": "./marbles.test.d.ts"
43
+ },
44
+ "./marbles.ts": {
45
+ "import": "./marbles.js",
46
+ "types": "./marbles.d.ts"
47
+ },
48
+ "./node_modules/typescript/lib/lib.d.ts": {
49
+ "import": "./node_modules/typescript/lib/lib.d.js",
50
+ "types": "./node_modules/typescript/lib/lib.d.d.ts"
51
+ },
52
+ "./node_modules/typescript/lib/lib.decorators.d.ts": {
53
+ "import": "./node_modules/typescript/lib/lib.decorators.d.js",
54
+ "types": "./node_modules/typescript/lib/lib.decorators.d.d.ts"
55
+ },
56
+ "./node_modules/typescript/lib/lib.decorators.legacy.d.ts": {
57
+ "import": "./node_modules/typescript/lib/lib.decorators.legacy.d.js",
58
+ "types": "./node_modules/typescript/lib/lib.decorators.legacy.d.d.ts"
59
+ },
60
+ "./node_modules/typescript/lib/lib.dom.asynciterable.d.ts": {
61
+ "import": "./node_modules/typescript/lib/lib.dom.asynciterable.d.js",
62
+ "types": "./node_modules/typescript/lib/lib.dom.asynciterable.d.d.ts"
63
+ },
64
+ "./node_modules/typescript/lib/lib.dom.d.ts": {
65
+ "import": "./node_modules/typescript/lib/lib.dom.d.js",
66
+ "types": "./node_modules/typescript/lib/lib.dom.d.d.ts"
67
+ },
68
+ "./node_modules/typescript/lib/lib.dom.iterable.d.ts": {
69
+ "import": "./node_modules/typescript/lib/lib.dom.iterable.d.js",
70
+ "types": "./node_modules/typescript/lib/lib.dom.iterable.d.d.ts"
71
+ },
72
+ "./node_modules/typescript/lib/lib.es2015.collection.d.ts": {
73
+ "import": "./node_modules/typescript/lib/lib.es2015.collection.d.js",
74
+ "types": "./node_modules/typescript/lib/lib.es2015.collection.d.d.ts"
75
+ },
76
+ "./node_modules/typescript/lib/lib.es2015.core.d.ts": {
77
+ "import": "./node_modules/typescript/lib/lib.es2015.core.d.js",
78
+ "types": "./node_modules/typescript/lib/lib.es2015.core.d.d.ts"
79
+ },
80
+ "./node_modules/typescript/lib/lib.es2015.d.ts": {
81
+ "import": "./node_modules/typescript/lib/lib.es2015.d.js",
82
+ "types": "./node_modules/typescript/lib/lib.es2015.d.d.ts"
83
+ },
84
+ "./node_modules/typescript/lib/lib.es2015.generator.d.ts": {
85
+ "import": "./node_modules/typescript/lib/lib.es2015.generator.d.js",
86
+ "types": "./node_modules/typescript/lib/lib.es2015.generator.d.d.ts"
87
+ },
88
+ "./node_modules/typescript/lib/lib.es2015.iterable.d.ts": {
89
+ "import": "./node_modules/typescript/lib/lib.es2015.iterable.d.js",
90
+ "types": "./node_modules/typescript/lib/lib.es2015.iterable.d.d.ts"
91
+ },
92
+ "./node_modules/typescript/lib/lib.es2015.promise.d.ts": {
93
+ "import": "./node_modules/typescript/lib/lib.es2015.promise.d.js",
94
+ "types": "./node_modules/typescript/lib/lib.es2015.promise.d.d.ts"
95
+ },
96
+ "./node_modules/typescript/lib/lib.es2015.proxy.d.ts": {
97
+ "import": "./node_modules/typescript/lib/lib.es2015.proxy.d.js",
98
+ "types": "./node_modules/typescript/lib/lib.es2015.proxy.d.d.ts"
99
+ },
100
+ "./node_modules/typescript/lib/lib.es2015.reflect.d.ts": {
101
+ "import": "./node_modules/typescript/lib/lib.es2015.reflect.d.js",
102
+ "types": "./node_modules/typescript/lib/lib.es2015.reflect.d.d.ts"
103
+ },
104
+ "./node_modules/typescript/lib/lib.es2015.symbol.d.ts": {
105
+ "import": "./node_modules/typescript/lib/lib.es2015.symbol.d.js",
106
+ "types": "./node_modules/typescript/lib/lib.es2015.symbol.d.d.ts"
107
+ },
108
+ "./node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts": {
109
+ "import": "./node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.js",
110
+ "types": "./node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.d.ts"
111
+ },
112
+ "./node_modules/typescript/lib/lib.es2016.array.include.d.ts": {
113
+ "import": "./node_modules/typescript/lib/lib.es2016.array.include.d.js",
114
+ "types": "./node_modules/typescript/lib/lib.es2016.array.include.d.d.ts"
115
+ },
116
+ "./node_modules/typescript/lib/lib.es2016.d.ts": {
117
+ "import": "./node_modules/typescript/lib/lib.es2016.d.js",
118
+ "types": "./node_modules/typescript/lib/lib.es2016.d.d.ts"
119
+ },
120
+ "./node_modules/typescript/lib/lib.es2016.full.d.ts": {
121
+ "import": "./node_modules/typescript/lib/lib.es2016.full.d.js",
122
+ "types": "./node_modules/typescript/lib/lib.es2016.full.d.d.ts"
123
+ },
124
+ "./node_modules/typescript/lib/lib.es2016.intl.d.ts": {
125
+ "import": "./node_modules/typescript/lib/lib.es2016.intl.d.js",
126
+ "types": "./node_modules/typescript/lib/lib.es2016.intl.d.d.ts"
127
+ },
128
+ "./node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts": {
129
+ "import": "./node_modules/typescript/lib/lib.es2017.arraybuffer.d.js",
130
+ "types": "./node_modules/typescript/lib/lib.es2017.arraybuffer.d.d.ts"
131
+ },
132
+ "./node_modules/typescript/lib/lib.es2017.d.ts": {
133
+ "import": "./node_modules/typescript/lib/lib.es2017.d.js",
134
+ "types": "./node_modules/typescript/lib/lib.es2017.d.d.ts"
135
+ },
136
+ "./node_modules/typescript/lib/lib.es2017.date.d.ts": {
137
+ "import": "./node_modules/typescript/lib/lib.es2017.date.d.js",
138
+ "types": "./node_modules/typescript/lib/lib.es2017.date.d.d.ts"
139
+ },
140
+ "./node_modules/typescript/lib/lib.es2017.full.d.ts": {
141
+ "import": "./node_modules/typescript/lib/lib.es2017.full.d.js",
142
+ "types": "./node_modules/typescript/lib/lib.es2017.full.d.d.ts"
143
+ },
144
+ "./node_modules/typescript/lib/lib.es2017.intl.d.ts": {
145
+ "import": "./node_modules/typescript/lib/lib.es2017.intl.d.js",
146
+ "types": "./node_modules/typescript/lib/lib.es2017.intl.d.d.ts"
147
+ },
148
+ "./node_modules/typescript/lib/lib.es2017.object.d.ts": {
149
+ "import": "./node_modules/typescript/lib/lib.es2017.object.d.js",
150
+ "types": "./node_modules/typescript/lib/lib.es2017.object.d.d.ts"
151
+ },
152
+ "./node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts": {
153
+ "import": "./node_modules/typescript/lib/lib.es2017.sharedmemory.d.js",
154
+ "types": "./node_modules/typescript/lib/lib.es2017.sharedmemory.d.d.ts"
155
+ },
156
+ "./node_modules/typescript/lib/lib.es2017.string.d.ts": {
157
+ "import": "./node_modules/typescript/lib/lib.es2017.string.d.js",
158
+ "types": "./node_modules/typescript/lib/lib.es2017.string.d.d.ts"
159
+ },
160
+ "./node_modules/typescript/lib/lib.es2017.typedarrays.d.ts": {
161
+ "import": "./node_modules/typescript/lib/lib.es2017.typedarrays.d.js",
162
+ "types": "./node_modules/typescript/lib/lib.es2017.typedarrays.d.d.ts"
163
+ },
164
+ "./node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts": {
165
+ "import": "./node_modules/typescript/lib/lib.es2018.asyncgenerator.d.js",
166
+ "types": "./node_modules/typescript/lib/lib.es2018.asyncgenerator.d.d.ts"
167
+ },
168
+ "./node_modules/typescript/lib/lib.es2018.asynciterable.d.ts": {
169
+ "import": "./node_modules/typescript/lib/lib.es2018.asynciterable.d.js",
170
+ "types": "./node_modules/typescript/lib/lib.es2018.asynciterable.d.d.ts"
171
+ },
172
+ "./node_modules/typescript/lib/lib.es2018.d.ts": {
173
+ "import": "./node_modules/typescript/lib/lib.es2018.d.js",
174
+ "types": "./node_modules/typescript/lib/lib.es2018.d.d.ts"
175
+ },
176
+ "./node_modules/typescript/lib/lib.es2018.full.d.ts": {
177
+ "import": "./node_modules/typescript/lib/lib.es2018.full.d.js",
178
+ "types": "./node_modules/typescript/lib/lib.es2018.full.d.d.ts"
179
+ },
180
+ "./node_modules/typescript/lib/lib.es2018.intl.d.ts": {
181
+ "import": "./node_modules/typescript/lib/lib.es2018.intl.d.js",
182
+ "types": "./node_modules/typescript/lib/lib.es2018.intl.d.d.ts"
183
+ },
184
+ "./node_modules/typescript/lib/lib.es2018.promise.d.ts": {
185
+ "import": "./node_modules/typescript/lib/lib.es2018.promise.d.js",
186
+ "types": "./node_modules/typescript/lib/lib.es2018.promise.d.d.ts"
187
+ },
188
+ "./node_modules/typescript/lib/lib.es2018.regexp.d.ts": {
189
+ "import": "./node_modules/typescript/lib/lib.es2018.regexp.d.js",
190
+ "types": "./node_modules/typescript/lib/lib.es2018.regexp.d.d.ts"
191
+ },
192
+ "./node_modules/typescript/lib/lib.es2019.array.d.ts": {
193
+ "import": "./node_modules/typescript/lib/lib.es2019.array.d.js",
194
+ "types": "./node_modules/typescript/lib/lib.es2019.array.d.d.ts"
195
+ },
196
+ "./node_modules/typescript/lib/lib.es2019.d.ts": {
197
+ "import": "./node_modules/typescript/lib/lib.es2019.d.js",
198
+ "types": "./node_modules/typescript/lib/lib.es2019.d.d.ts"
199
+ },
200
+ "./node_modules/typescript/lib/lib.es2019.full.d.ts": {
201
+ "import": "./node_modules/typescript/lib/lib.es2019.full.d.js",
202
+ "types": "./node_modules/typescript/lib/lib.es2019.full.d.d.ts"
203
+ },
204
+ "./node_modules/typescript/lib/lib.es2019.intl.d.ts": {
205
+ "import": "./node_modules/typescript/lib/lib.es2019.intl.d.js",
206
+ "types": "./node_modules/typescript/lib/lib.es2019.intl.d.d.ts"
207
+ },
208
+ "./node_modules/typescript/lib/lib.es2019.object.d.ts": {
209
+ "import": "./node_modules/typescript/lib/lib.es2019.object.d.js",
210
+ "types": "./node_modules/typescript/lib/lib.es2019.object.d.d.ts"
211
+ },
212
+ "./node_modules/typescript/lib/lib.es2019.string.d.ts": {
213
+ "import": "./node_modules/typescript/lib/lib.es2019.string.d.js",
214
+ "types": "./node_modules/typescript/lib/lib.es2019.string.d.d.ts"
215
+ },
216
+ "./node_modules/typescript/lib/lib.es2019.symbol.d.ts": {
217
+ "import": "./node_modules/typescript/lib/lib.es2019.symbol.d.js",
218
+ "types": "./node_modules/typescript/lib/lib.es2019.symbol.d.d.ts"
219
+ },
220
+ "./node_modules/typescript/lib/lib.es2020.bigint.d.ts": {
221
+ "import": "./node_modules/typescript/lib/lib.es2020.bigint.d.js",
222
+ "types": "./node_modules/typescript/lib/lib.es2020.bigint.d.d.ts"
223
+ },
224
+ "./node_modules/typescript/lib/lib.es2020.d.ts": {
225
+ "import": "./node_modules/typescript/lib/lib.es2020.d.js",
226
+ "types": "./node_modules/typescript/lib/lib.es2020.d.d.ts"
227
+ },
228
+ "./node_modules/typescript/lib/lib.es2020.date.d.ts": {
229
+ "import": "./node_modules/typescript/lib/lib.es2020.date.d.js",
230
+ "types": "./node_modules/typescript/lib/lib.es2020.date.d.d.ts"
231
+ },
232
+ "./node_modules/typescript/lib/lib.es2020.full.d.ts": {
233
+ "import": "./node_modules/typescript/lib/lib.es2020.full.d.js",
234
+ "types": "./node_modules/typescript/lib/lib.es2020.full.d.d.ts"
235
+ },
236
+ "./node_modules/typescript/lib/lib.es2020.intl.d.ts": {
237
+ "import": "./node_modules/typescript/lib/lib.es2020.intl.d.js",
238
+ "types": "./node_modules/typescript/lib/lib.es2020.intl.d.d.ts"
239
+ },
240
+ "./node_modules/typescript/lib/lib.es2020.number.d.ts": {
241
+ "import": "./node_modules/typescript/lib/lib.es2020.number.d.js",
242
+ "types": "./node_modules/typescript/lib/lib.es2020.number.d.d.ts"
243
+ },
244
+ "./node_modules/typescript/lib/lib.es2020.promise.d.ts": {
245
+ "import": "./node_modules/typescript/lib/lib.es2020.promise.d.js",
246
+ "types": "./node_modules/typescript/lib/lib.es2020.promise.d.d.ts"
247
+ },
248
+ "./node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts": {
249
+ "import": "./node_modules/typescript/lib/lib.es2020.sharedmemory.d.js",
250
+ "types": "./node_modules/typescript/lib/lib.es2020.sharedmemory.d.d.ts"
251
+ },
252
+ "./node_modules/typescript/lib/lib.es2020.string.d.ts": {
253
+ "import": "./node_modules/typescript/lib/lib.es2020.string.d.js",
254
+ "types": "./node_modules/typescript/lib/lib.es2020.string.d.d.ts"
255
+ },
256
+ "./node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts": {
257
+ "import": "./node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.js",
258
+ "types": "./node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.d.ts"
259
+ },
260
+ "./node_modules/typescript/lib/lib.es2021.d.ts": {
261
+ "import": "./node_modules/typescript/lib/lib.es2021.d.js",
262
+ "types": "./node_modules/typescript/lib/lib.es2021.d.d.ts"
263
+ },
264
+ "./node_modules/typescript/lib/lib.es2021.full.d.ts": {
265
+ "import": "./node_modules/typescript/lib/lib.es2021.full.d.js",
266
+ "types": "./node_modules/typescript/lib/lib.es2021.full.d.d.ts"
267
+ },
268
+ "./node_modules/typescript/lib/lib.es2021.intl.d.ts": {
269
+ "import": "./node_modules/typescript/lib/lib.es2021.intl.d.js",
270
+ "types": "./node_modules/typescript/lib/lib.es2021.intl.d.d.ts"
271
+ },
272
+ "./node_modules/typescript/lib/lib.es2021.promise.d.ts": {
273
+ "import": "./node_modules/typescript/lib/lib.es2021.promise.d.js",
274
+ "types": "./node_modules/typescript/lib/lib.es2021.promise.d.d.ts"
275
+ },
276
+ "./node_modules/typescript/lib/lib.es2021.string.d.ts": {
277
+ "import": "./node_modules/typescript/lib/lib.es2021.string.d.js",
278
+ "types": "./node_modules/typescript/lib/lib.es2021.string.d.d.ts"
279
+ },
280
+ "./node_modules/typescript/lib/lib.es2021.weakref.d.ts": {
281
+ "import": "./node_modules/typescript/lib/lib.es2021.weakref.d.js",
282
+ "types": "./node_modules/typescript/lib/lib.es2021.weakref.d.d.ts"
283
+ },
284
+ "./node_modules/typescript/lib/lib.es2022.array.d.ts": {
285
+ "import": "./node_modules/typescript/lib/lib.es2022.array.d.js",
286
+ "types": "./node_modules/typescript/lib/lib.es2022.array.d.d.ts"
287
+ },
288
+ "./node_modules/typescript/lib/lib.es2022.d.ts": {
289
+ "import": "./node_modules/typescript/lib/lib.es2022.d.js",
290
+ "types": "./node_modules/typescript/lib/lib.es2022.d.d.ts"
291
+ },
292
+ "./node_modules/typescript/lib/lib.es2022.error.d.ts": {
293
+ "import": "./node_modules/typescript/lib/lib.es2022.error.d.js",
294
+ "types": "./node_modules/typescript/lib/lib.es2022.error.d.d.ts"
295
+ },
296
+ "./node_modules/typescript/lib/lib.es2022.full.d.ts": {
297
+ "import": "./node_modules/typescript/lib/lib.es2022.full.d.js",
298
+ "types": "./node_modules/typescript/lib/lib.es2022.full.d.d.ts"
299
+ },
300
+ "./node_modules/typescript/lib/lib.es2022.intl.d.ts": {
301
+ "import": "./node_modules/typescript/lib/lib.es2022.intl.d.js",
302
+ "types": "./node_modules/typescript/lib/lib.es2022.intl.d.d.ts"
303
+ },
304
+ "./node_modules/typescript/lib/lib.es2022.object.d.ts": {
305
+ "import": "./node_modules/typescript/lib/lib.es2022.object.d.js",
306
+ "types": "./node_modules/typescript/lib/lib.es2022.object.d.d.ts"
307
+ },
308
+ "./node_modules/typescript/lib/lib.es2022.regexp.d.ts": {
309
+ "import": "./node_modules/typescript/lib/lib.es2022.regexp.d.js",
310
+ "types": "./node_modules/typescript/lib/lib.es2022.regexp.d.d.ts"
311
+ },
312
+ "./node_modules/typescript/lib/lib.es2022.string.d.ts": {
313
+ "import": "./node_modules/typescript/lib/lib.es2022.string.d.js",
314
+ "types": "./node_modules/typescript/lib/lib.es2022.string.d.d.ts"
315
+ },
316
+ "./node_modules/typescript/lib/lib.es2023.array.d.ts": {
317
+ "import": "./node_modules/typescript/lib/lib.es2023.array.d.js",
318
+ "types": "./node_modules/typescript/lib/lib.es2023.array.d.d.ts"
319
+ },
320
+ "./node_modules/typescript/lib/lib.es2023.collection.d.ts": {
321
+ "import": "./node_modules/typescript/lib/lib.es2023.collection.d.js",
322
+ "types": "./node_modules/typescript/lib/lib.es2023.collection.d.d.ts"
323
+ },
324
+ "./node_modules/typescript/lib/lib.es2023.d.ts": {
325
+ "import": "./node_modules/typescript/lib/lib.es2023.d.js",
326
+ "types": "./node_modules/typescript/lib/lib.es2023.d.d.ts"
327
+ },
328
+ "./node_modules/typescript/lib/lib.es2023.full.d.ts": {
329
+ "import": "./node_modules/typescript/lib/lib.es2023.full.d.js",
330
+ "types": "./node_modules/typescript/lib/lib.es2023.full.d.d.ts"
331
+ },
332
+ "./node_modules/typescript/lib/lib.es2023.intl.d.ts": {
333
+ "import": "./node_modules/typescript/lib/lib.es2023.intl.d.js",
334
+ "types": "./node_modules/typescript/lib/lib.es2023.intl.d.d.ts"
335
+ },
336
+ "./node_modules/typescript/lib/lib.es2024.arraybuffer.d.ts": {
337
+ "import": "./node_modules/typescript/lib/lib.es2024.arraybuffer.d.js",
338
+ "types": "./node_modules/typescript/lib/lib.es2024.arraybuffer.d.d.ts"
339
+ },
340
+ "./node_modules/typescript/lib/lib.es2024.collection.d.ts": {
341
+ "import": "./node_modules/typescript/lib/lib.es2024.collection.d.js",
342
+ "types": "./node_modules/typescript/lib/lib.es2024.collection.d.d.ts"
343
+ },
344
+ "./node_modules/typescript/lib/lib.es2024.d.ts": {
345
+ "import": "./node_modules/typescript/lib/lib.es2024.d.js",
346
+ "types": "./node_modules/typescript/lib/lib.es2024.d.d.ts"
347
+ },
348
+ "./node_modules/typescript/lib/lib.es2024.full.d.ts": {
349
+ "import": "./node_modules/typescript/lib/lib.es2024.full.d.js",
350
+ "types": "./node_modules/typescript/lib/lib.es2024.full.d.d.ts"
351
+ },
352
+ "./node_modules/typescript/lib/lib.es2024.object.d.ts": {
353
+ "import": "./node_modules/typescript/lib/lib.es2024.object.d.js",
354
+ "types": "./node_modules/typescript/lib/lib.es2024.object.d.d.ts"
355
+ },
356
+ "./node_modules/typescript/lib/lib.es2024.promise.d.ts": {
357
+ "import": "./node_modules/typescript/lib/lib.es2024.promise.d.js",
358
+ "types": "./node_modules/typescript/lib/lib.es2024.promise.d.d.ts"
359
+ },
360
+ "./node_modules/typescript/lib/lib.es2024.regexp.d.ts": {
361
+ "import": "./node_modules/typescript/lib/lib.es2024.regexp.d.js",
362
+ "types": "./node_modules/typescript/lib/lib.es2024.regexp.d.d.ts"
363
+ },
364
+ "./node_modules/typescript/lib/lib.es2024.sharedmemory.d.ts": {
365
+ "import": "./node_modules/typescript/lib/lib.es2024.sharedmemory.d.js",
366
+ "types": "./node_modules/typescript/lib/lib.es2024.sharedmemory.d.d.ts"
367
+ },
368
+ "./node_modules/typescript/lib/lib.es2024.string.d.ts": {
369
+ "import": "./node_modules/typescript/lib/lib.es2024.string.d.js",
370
+ "types": "./node_modules/typescript/lib/lib.es2024.string.d.d.ts"
371
+ },
372
+ "./node_modules/typescript/lib/lib.es5.d.ts": {
373
+ "import": "./node_modules/typescript/lib/lib.es5.d.js",
374
+ "types": "./node_modules/typescript/lib/lib.es5.d.d.ts"
375
+ },
376
+ "./node_modules/typescript/lib/lib.es6.d.ts": {
377
+ "import": "./node_modules/typescript/lib/lib.es6.d.js",
378
+ "types": "./node_modules/typescript/lib/lib.es6.d.d.ts"
379
+ },
380
+ "./node_modules/typescript/lib/lib.esnext.array.d.ts": {
381
+ "import": "./node_modules/typescript/lib/lib.esnext.array.d.js",
382
+ "types": "./node_modules/typescript/lib/lib.esnext.array.d.d.ts"
383
+ },
384
+ "./node_modules/typescript/lib/lib.esnext.collection.d.ts": {
385
+ "import": "./node_modules/typescript/lib/lib.esnext.collection.d.js",
386
+ "types": "./node_modules/typescript/lib/lib.esnext.collection.d.d.ts"
387
+ },
388
+ "./node_modules/typescript/lib/lib.esnext.d.ts": {
389
+ "import": "./node_modules/typescript/lib/lib.esnext.d.js",
390
+ "types": "./node_modules/typescript/lib/lib.esnext.d.d.ts"
391
+ },
392
+ "./node_modules/typescript/lib/lib.esnext.decorators.d.ts": {
393
+ "import": "./node_modules/typescript/lib/lib.esnext.decorators.d.js",
394
+ "types": "./node_modules/typescript/lib/lib.esnext.decorators.d.d.ts"
395
+ },
396
+ "./node_modules/typescript/lib/lib.esnext.disposable.d.ts": {
397
+ "import": "./node_modules/typescript/lib/lib.esnext.disposable.d.js",
398
+ "types": "./node_modules/typescript/lib/lib.esnext.disposable.d.d.ts"
399
+ },
400
+ "./node_modules/typescript/lib/lib.esnext.error.d.ts": {
401
+ "import": "./node_modules/typescript/lib/lib.esnext.error.d.js",
402
+ "types": "./node_modules/typescript/lib/lib.esnext.error.d.d.ts"
403
+ },
404
+ "./node_modules/typescript/lib/lib.esnext.float16.d.ts": {
405
+ "import": "./node_modules/typescript/lib/lib.esnext.float16.d.js",
406
+ "types": "./node_modules/typescript/lib/lib.esnext.float16.d.d.ts"
407
+ },
408
+ "./node_modules/typescript/lib/lib.esnext.full.d.ts": {
409
+ "import": "./node_modules/typescript/lib/lib.esnext.full.d.js",
410
+ "types": "./node_modules/typescript/lib/lib.esnext.full.d.d.ts"
411
+ },
412
+ "./node_modules/typescript/lib/lib.esnext.intl.d.ts": {
413
+ "import": "./node_modules/typescript/lib/lib.esnext.intl.d.js",
414
+ "types": "./node_modules/typescript/lib/lib.esnext.intl.d.d.ts"
415
+ },
416
+ "./node_modules/typescript/lib/lib.esnext.iterator.d.ts": {
417
+ "import": "./node_modules/typescript/lib/lib.esnext.iterator.d.js",
418
+ "types": "./node_modules/typescript/lib/lib.esnext.iterator.d.d.ts"
419
+ },
420
+ "./node_modules/typescript/lib/lib.esnext.promise.d.ts": {
421
+ "import": "./node_modules/typescript/lib/lib.esnext.promise.d.js",
422
+ "types": "./node_modules/typescript/lib/lib.esnext.promise.d.d.ts"
423
+ },
424
+ "./node_modules/typescript/lib/lib.esnext.sharedmemory.d.ts": {
425
+ "import": "./node_modules/typescript/lib/lib.esnext.sharedmemory.d.js",
426
+ "types": "./node_modules/typescript/lib/lib.esnext.sharedmemory.d.d.ts"
427
+ },
428
+ "./node_modules/typescript/lib/lib.scripthost.d.ts": {
429
+ "import": "./node_modules/typescript/lib/lib.scripthost.d.js",
430
+ "types": "./node_modules/typescript/lib/lib.scripthost.d.d.ts"
431
+ },
432
+ "./node_modules/typescript/lib/lib.webworker.asynciterable.d.ts": {
433
+ "import": "./node_modules/typescript/lib/lib.webworker.asynciterable.d.js",
434
+ "types": "./node_modules/typescript/lib/lib.webworker.asynciterable.d.d.ts"
435
+ },
436
+ "./node_modules/typescript/lib/lib.webworker.d.ts": {
437
+ "import": "./node_modules/typescript/lib/lib.webworker.d.js",
438
+ "types": "./node_modules/typescript/lib/lib.webworker.d.d.ts"
439
+ },
440
+ "./node_modules/typescript/lib/lib.webworker.importscripts.d.ts": {
441
+ "import": "./node_modules/typescript/lib/lib.webworker.importscripts.d.js",
442
+ "types": "./node_modules/typescript/lib/lib.webworker.importscripts.d.d.ts"
443
+ },
444
+ "./node_modules/typescript/lib/lib.webworker.iterable.d.ts": {
445
+ "import": "./node_modules/typescript/lib/lib.webworker.iterable.d.js",
446
+ "types": "./node_modules/typescript/lib/lib.webworker.iterable.d.d.ts"
447
+ },
448
+ "./node_modules/typescript/lib/tsserverlibrary.d.ts": {
449
+ "import": "./node_modules/typescript/lib/tsserverlibrary.d.js",
450
+ "types": "./node_modules/typescript/lib/tsserverlibrary.d.d.ts"
451
+ },
452
+ "./node_modules/typescript/lib/typescript.d.ts": {
453
+ "import": "./node_modules/typescript/lib/typescript.d.js",
454
+ "types": "./node_modules/typescript/lib/typescript.d.d.ts"
455
+ },
456
+ "./type-util.test.ts": {
457
+ "import": "./type-util.test.js",
458
+ "types": "./type-util.test.d.ts"
459
+ },
460
+ "./type-util.ts": {
461
+ "import": "./type-util.js",
462
+ "types": "./type-util.d.ts"
463
+ },
464
+ "./url.test.ts": {
465
+ "import": "./url.test.js",
466
+ "types": "./url.test.d.ts"
467
+ },
468
+ "./url.ts": {
469
+ "import": "./url.js",
470
+ "types": "./url.d.ts"
471
+ },
472
+ "./util.test.ts": {
473
+ "import": "./util.test.js",
474
+ "types": "./util.test.d.ts"
475
+ },
476
+ "./util.ts": {
477
+ "import": "./util.js",
478
+ "types": "./util.d.ts"
479
+ }
480
+ }
481
+ }
package/type-util.d.ts ADDED
@@ -0,0 +1,50 @@
1
+ export type StringLiteral<T> = T extends string ? (string extends T ? never : T) : never;
2
+ export type ObjectWithStringLiteralKey<KEY, VALUE> = {
3
+ [K in StringLiteral<KEY>]: VALUE;
4
+ };
5
+ export type JsonType = number | string | boolean | null | undefined | JsonType[] | JsonObject;
6
+ export type JsonObject = {
7
+ [key: string]: JsonType;
8
+ };
9
+ export type TypedArray = Int8Array | Uint8Array | Uint8ClampedArray | Int16Array | Uint16Array | Int32Array | Uint32Array | Float32Array | Float64Array | BigInt64Array | BigUint64Array;
10
+ export type TokenNonEmptyString<TOKEN extends string | number> = TOKEN extends '' ? never : TOKEN;
11
+ export type Guard<T = any> = (arg: unknown) => arg is T;
12
+ export type GetGuarded<GUARD extends Guard> = GUARD extends (arg: unknown) => arg is infer GUARDED ? GUARDED : never;
13
+ export type EntryTuple<KEY extends string = string, VALUE = any> = [KEY, VALUE];
14
+ export type RecordToEntries<RECORD extends Record<string, any>, KEY = keyof RECORD> = KEY extends string ? (KEY extends keyof RECORD ? EntryTuple<KEY, RECORD[KEY]> : never) : never;
15
+ export type GetValueByKey<ENTRIES extends EntryTuple, KEY extends string> = ENTRIES extends EntryTuple<KEY, infer ENTRY> ? ENTRY : never;
16
+ export type GetKey<ENTRIES extends EntryTuple> = ENTRIES[0];
17
+ export type GetValue<ENTRIES extends EntryTuple> = ENTRIES[1];
18
+ export type FilterRecord2<RECORD extends Record<string | number | symbol, any>, TYPE> = Pick<RECORD, {
19
+ [K in keyof RECORD]: RECORD[K] extends TYPE ? K : never;
20
+ }[keyof RECORD]>;
21
+ export type FilterRecord<RECORD extends Record<string | number | symbol, any>, TYPE> = {
22
+ [K in keyof RECORD]: RECORD[K] extends TYPE ? RECORD[K] : never;
23
+ };
24
+ export type Split<STRING extends string, DELIMITER extends string> = SplitHelper<STRING, DELIMITER>;
25
+ type SplitHelper<STRING extends string, DELIMITER extends string, ACC extends readonly string[] = []> = STRING extends `${infer FIRST}${DELIMITER}${infer REST}` ? SplitHelper<REST, DELIMITER, [...ACC, FIRST]> : readonly [...ACC, STRING];
26
+ export type SplitObjectPath<PATH extends string> = Split<PATH, '.'>;
27
+ export type SplitFilePath<PATH extends string> = Split<PATH, '/'>;
28
+ export type GetAllPaths<OBJECT, PATH extends string = ''> = PathsHelper<OBJECT, PATH, never>;
29
+ type PathsHelper<OBJECT, PATH extends string, ACC extends string> = {
30
+ [K in keyof OBJECT & string]: PATH extends '' ? K | (OBJECT[K] extends Record<string, any> ? PathsHelper<OBJECT[K], K, K> : never) : `${PATH}.${K}` | (OBJECT[K] extends Record<string, any> ? PathsHelper<OBJECT[K], `${PATH}.${K}`, `${PATH}.${K}` | ACC> : never);
31
+ }[keyof OBJECT & string] | ACC;
32
+ export type GetValueByPath<OBJECT, PATH extends string> = PATH extends keyof OBJECT ? OBJECT[PATH] : PATH extends `${infer K}.${infer Rest}` ? K extends keyof OBJECT ? GetValueByPath<OBJECT[K], Rest & string> : never : never;
33
+ export type JoinArray<STRINGS extends readonly string[], DELIMITER extends string, ACC extends string = ''> = STRINGS extends [] ? '' : STRINGS extends [infer L, ...infer R] ? L extends string ? R['length'] extends 0 ? `${ACC}${L & string}` : R extends string[] ? JoinArray<R, DELIMITER, `${ACC}${L}${DELIMITER}`> : never : ACC : never;
34
+ type CamelCaseSegments<S extends string, CurrentSegment extends string = '', AccumulatedSegments extends readonly string[] = readonly []> = S extends `${infer First}${infer Rest}` ? First extends Uppercase<First> ? CurrentSegment extends '' ? CamelCaseSegments<Rest, First, AccumulatedSegments> : CamelCaseSegments<Rest, First, readonly [...AccumulatedSegments, Lowercase<CurrentSegment>]> : CamelCaseSegments<Rest, `${CurrentSegment}${First}`, AccumulatedSegments> : CurrentSegment extends '' ? AccumulatedSegments : readonly [...AccumulatedSegments, Lowercase<CurrentSegment>];
35
+ type CamelCaseArray<SEGMENTS extends readonly string[], Prev extends string = ''> = SEGMENTS extends readonly [infer First extends string, ...infer Rest extends readonly string[]] ? CamelCaseArray<Rest, `${Prev extends '' ? Lowercase<First> : `${Prev}${Capitalize<First>}`}`> : Prev;
36
+ export type ToCamelCase<S extends readonly string[]> = CamelCaseArray<S>;
37
+ export type ToKebabCase<S extends readonly string[]> = JoinArray<Mutable<S>, '-'>;
38
+ export type ToSnakeCase<S extends readonly string[]> = JoinArray<Mutable<S>, '_'>;
39
+ export type FromCamelCase<S extends string> = CamelCaseSegments<S>;
40
+ export type FromKebabCase<S extends string> = S extends '' ? readonly [] : Split<S, '-'>;
41
+ export type FromSnakeCase<S extends string> = S extends '' ? readonly [] : Split<S, '_'>;
42
+ export type Mutable<T> = {
43
+ -readonly [K in keyof T]: T[K];
44
+ };
45
+ export type PartialBesides<OBJECT, KEYS extends keyof OBJECT> = Partial<Omit<OBJECT, KEYS>> & Pick<OBJECT, KEYS>;
46
+ export type DeepPartial<T> = {
47
+ [K in keyof T]?: T[K] extends object ? DeepPartial<T[K]> : T[K];
48
+ };
49
+ export type SyncFunctionToAsync<FUNC extends (...args: any[]) => any> = FUNC extends (...args: infer ARGS) => infer RETURN ? (...args: ARGS) => Promise<RETURN> : never;
50
+ export {};
package/type-util.js ADDED
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};