@rs-x/core 0.4.10 → 0.4.12
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/dist/index.d.ts +183 -95
- package/dist/index.js +1649 -1315
- package/package.json +1 -1
- package/readme.md +472 -494
package/dist/index.d.ts
CHANGED
|
@@ -2,8 +2,9 @@ import { Container, Newable, ServiceIdentifier, BindToFluentSyntax, ContainerMod
|
|
|
2
2
|
export { BindToFluentSyntax, Container, ContainerModule, ContainerModuleLoadOptions, inject as Inject, injectable as Injectable, multiInject as MultiInject, Newable, preDestroy as PreDestroy, ServiceIdentifier, unmanaged as Unmanaged } from 'inversify';
|
|
3
3
|
import { Observable, Subject } from 'rxjs';
|
|
4
4
|
|
|
5
|
-
interface
|
|
6
|
-
|
|
5
|
+
interface IDeepClone {
|
|
6
|
+
readonly priority: number;
|
|
7
|
+
clone(source: unknown): unknown;
|
|
7
8
|
}
|
|
8
9
|
|
|
9
10
|
interface IResolvedValueCache {
|
|
@@ -12,17 +13,16 @@ interface IResolvedValueCache {
|
|
|
12
13
|
delete(source: WeakKey): void;
|
|
13
14
|
}
|
|
14
15
|
|
|
16
|
+
interface IDeepCloneExcept {
|
|
17
|
+
except(source: unknown): unknown;
|
|
18
|
+
}
|
|
19
|
+
|
|
15
20
|
declare class DeepCloneValueExcept implements IDeepCloneExcept {
|
|
16
21
|
private readonly _resolvedValueCache;
|
|
17
22
|
constructor(_resolvedValueCache: IResolvedValueCache);
|
|
18
23
|
except(source: unknown): unknown;
|
|
19
24
|
}
|
|
20
25
|
|
|
21
|
-
interface IDeepClone {
|
|
22
|
-
readonly priority: number;
|
|
23
|
-
clone(source: unknown): unknown;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
26
|
declare class DefaultDeepClone implements IDeepClone {
|
|
27
27
|
private readonly _deepCloneList;
|
|
28
28
|
readonly priority = 0;
|
|
@@ -103,7 +103,15 @@ declare class PrettyPrinter {
|
|
|
103
103
|
|
|
104
104
|
declare function printValue(value: unknown): void;
|
|
105
105
|
|
|
106
|
-
declare class
|
|
106
|
+
declare class CustomError extends Error {
|
|
107
|
+
constructor(message: string, name?: string);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
declare class ArgumentException extends CustomError {
|
|
111
|
+
constructor(message: string);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
declare class AssertionError extends CustomError {
|
|
107
115
|
constructor(message: string);
|
|
108
116
|
}
|
|
109
117
|
|
|
@@ -151,73 +159,52 @@ declare class Type {
|
|
|
151
159
|
declare class Assertion {
|
|
152
160
|
private constructor();
|
|
153
161
|
static assertIsFunction(value: unknown, name: string | number): asserts value is AnyFunction;
|
|
162
|
+
static assert(predicate: () => boolean, messsage: string): void;
|
|
154
163
|
static assertNotNullOrUndefined(value: unknown, argumentName: string): void;
|
|
155
164
|
static assertNotNullOrEmpty(value: unknown, argumentName: string): void;
|
|
156
165
|
}
|
|
157
166
|
|
|
158
|
-
declare class InvalidCastException extends
|
|
167
|
+
declare class InvalidCastException extends CustomError {
|
|
159
168
|
constructor(message: string);
|
|
160
169
|
}
|
|
161
170
|
|
|
162
|
-
declare class InvalidOperationException extends
|
|
171
|
+
declare class InvalidOperationException extends CustomError {
|
|
163
172
|
constructor(message: string);
|
|
164
173
|
}
|
|
165
174
|
|
|
166
|
-
declare class NullOrEmptyException extends
|
|
175
|
+
declare class NullOrEmptyException extends CustomError {
|
|
167
176
|
constructor(argumentName: string);
|
|
168
177
|
}
|
|
169
178
|
|
|
170
|
-
declare class NullOrUndefinedException extends
|
|
179
|
+
declare class NullOrUndefinedException extends CustomError {
|
|
171
180
|
constructor(argumentName: string);
|
|
172
181
|
}
|
|
173
182
|
|
|
174
|
-
declare class ParserException extends
|
|
183
|
+
declare class ParserException extends CustomError {
|
|
175
184
|
readonly expression: string;
|
|
176
185
|
readonly position?: number | undefined;
|
|
177
186
|
constructor(expression: string, message: string, position?: number | undefined);
|
|
178
187
|
}
|
|
179
188
|
|
|
180
|
-
declare class UnexpectedException extends
|
|
189
|
+
declare class UnexpectedException extends CustomError {
|
|
181
190
|
constructor(message: string);
|
|
182
191
|
}
|
|
183
192
|
|
|
184
|
-
declare class UnsupportedException extends
|
|
193
|
+
declare class UnsupportedException extends CustomError {
|
|
185
194
|
constructor(message: string);
|
|
186
195
|
}
|
|
187
196
|
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
interface IDisposable {
|
|
191
|
-
dispose(): void;
|
|
197
|
+
interface IGuidFactory {
|
|
198
|
+
create(): string;
|
|
192
199
|
}
|
|
193
200
|
|
|
194
|
-
interface
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
}
|
|
198
|
-
interface IPropertyChange {
|
|
199
|
-
chain?: IChainPart[];
|
|
200
|
-
target: unknown;
|
|
201
|
-
id?: unknown;
|
|
202
|
-
newValue?: unknown;
|
|
203
|
-
arguments?: unknown[];
|
|
204
|
-
setValue?: (value: unknown) => void;
|
|
201
|
+
interface IDisposableOwner {
|
|
202
|
+
canDispose?(): boolean;
|
|
203
|
+
release(): void;
|
|
205
204
|
}
|
|
206
205
|
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
declare function utCDate(year: number, month?: number, date?: number, hours?: number, minutes?: number, seconds?: number, millisecond?: number): Date;
|
|
210
|
-
|
|
211
|
-
interface IISequenceWithIdData {
|
|
212
|
-
sequence: readonly unknown[];
|
|
213
|
-
readonly id: string;
|
|
214
|
-
}
|
|
215
|
-
interface ISequenceWithId extends IISequenceWithIdData, IDisposable {
|
|
216
|
-
}
|
|
217
|
-
interface ISequenceIdFactory {
|
|
218
|
-
create(context: unknown, sequence: unknown[]): ISequenceWithId;
|
|
219
|
-
release(context: unknown, id: string): void;
|
|
220
|
-
get(context: unknown, sequence: unknown[]): ISequenceWithId | undefined;
|
|
206
|
+
interface IDisposable {
|
|
207
|
+
dispose(): void;
|
|
221
208
|
}
|
|
222
209
|
|
|
223
210
|
interface ISingletonFactory<TId = unknown, TData = unknown, TInstance = unknown, TIdData = TData> extends IDisposable {
|
|
@@ -237,6 +224,7 @@ interface ISingletonFactory<TId = unknown, TData = unknown, TInstance = unknown,
|
|
|
237
224
|
has(id: TId): boolean;
|
|
238
225
|
getFromData(data: TIdData): TInstance | undefined;
|
|
239
226
|
getId(data: TIdData): TId | undefined;
|
|
227
|
+
getReferenceCount(id: TId): number;
|
|
240
228
|
exists(instance: TInstance): boolean;
|
|
241
229
|
}
|
|
242
230
|
|
|
@@ -264,7 +252,10 @@ declare abstract class SingletonFactory<TId, TData extends TIdData, TInstance, T
|
|
|
264
252
|
referenceCount: number;
|
|
265
253
|
instance: TInstance | null;
|
|
266
254
|
};
|
|
267
|
-
|
|
255
|
+
getReferenceCount(id: TId): number;
|
|
256
|
+
protected get keys(): MapIterator<TId>;
|
|
257
|
+
protected get instances(): MapIterator<TInstance>;
|
|
258
|
+
protected replaceKey(oldKey: TId, newKey: TId): void;
|
|
268
259
|
protected onDisposeInstance: (id: TId, dispose: () => void) => boolean;
|
|
269
260
|
protected abstract createInstance(data: TData, id: TId): TInstance;
|
|
270
261
|
protected abstract createId(data: TIdData): TId;
|
|
@@ -273,62 +264,35 @@ declare abstract class SingletonFactory<TId, TData extends TIdData, TInstance, T
|
|
|
273
264
|
protected releaseInstance(_instance: TInstance, _id: TId): void;
|
|
274
265
|
protected onInstanceCreated(_instance: TInstance, _data: TData): void;
|
|
275
266
|
protected getOrCreateId(data: TIdData): TId;
|
|
276
|
-
protected getReferenceCount(id: TId): number;
|
|
277
267
|
protected updateReferenceCount(id: TId, change: 1 | -1, instance: TInstance, forceRelease?: boolean): number;
|
|
278
268
|
private getOrCreateInstance;
|
|
279
269
|
}
|
|
280
270
|
|
|
281
|
-
|
|
282
|
-
readonly context: unknown;
|
|
283
|
-
readonly functionName: string;
|
|
284
|
-
readonly arguments: unknown[];
|
|
285
|
-
}
|
|
286
|
-
interface IFunctionCallIndex {
|
|
287
|
-
readonly context: unknown;
|
|
288
|
-
readonly functionName: string;
|
|
289
|
-
readonly argumentsId: IISequenceWithIdData;
|
|
290
|
-
readonly id: string;
|
|
291
|
-
}
|
|
292
|
-
interface IDisposableFunctionCallIndex extends IFunctionCallIndex, IDisposable {
|
|
293
|
-
readonly context: unknown;
|
|
294
|
-
readonly functionName: string;
|
|
295
|
-
readonly argumentsId: IISequenceWithIdData;
|
|
296
|
-
readonly id: string;
|
|
297
|
-
}
|
|
298
|
-
|
|
299
|
-
declare class FunctionCallIndexFactory extends SingletonFactory<IISequenceWithIdData, IFunctionCallIndexData, IDisposableFunctionCallIndex> {
|
|
300
|
-
private readonly _sequenceIdFactory;
|
|
301
|
-
constructor(_sequenceIdFactory: ISequenceIdFactory);
|
|
302
|
-
getId(data: IFunctionCallIndexData): IISequenceWithIdData;
|
|
303
|
-
protected createInstance(data: IFunctionCallIndexData, id: ISequenceWithId): IDisposableFunctionCallIndex;
|
|
304
|
-
protected createId(data: IFunctionCallIndexData): ISequenceWithId;
|
|
305
|
-
protected releaseInstance(_: IDisposableFunctionCallIndex, id: ISequenceWithId): void;
|
|
306
|
-
}
|
|
307
|
-
|
|
308
|
-
interface IGuidFactory {
|
|
271
|
+
declare class GuidFactory implements IGuidFactory {
|
|
309
272
|
create(): string;
|
|
310
273
|
}
|
|
311
274
|
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
275
|
+
type IInstanceGroupInfo<TId, TInstance> = {
|
|
276
|
+
groupId: unknown;
|
|
277
|
+
groupMemberId: unknown;
|
|
278
|
+
id: TId;
|
|
279
|
+
instance: TInstance;
|
|
280
|
+
};
|
|
317
281
|
interface ISingletonFactoryWithIdGeneration<TId, TData extends TIdData, TInstance, TIdData = TData> extends ISingletonFactory<TId, TData, TInstance, TIdData> {
|
|
318
282
|
isGroupRegistered(groupId: unknown): boolean;
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
declare class GuidFactory implements IGuidFactory {
|
|
322
|
-
create(): string;
|
|
283
|
+
instanceGroupInfoEntries(): IterableIterator<IInstanceGroupInfo<TId, TInstance>>;
|
|
323
284
|
}
|
|
324
285
|
|
|
325
286
|
declare abstract class SingletonFactoryWithIdGeneration<TId, TData extends TIdData, TInstance, TIdData = TData> extends SingletonFactory<TId, TData, TInstance, TIdData> implements ISingletonFactoryWithIdGeneration<TId, TData, TInstance, TIdData> {
|
|
326
287
|
private readonly _groupedData;
|
|
288
|
+
instanceGroupInfoEntries(): IterableIterator<IInstanceGroupInfo<TId, TInstance>>;
|
|
327
289
|
getId(data: TIdData): TId | undefined;
|
|
328
290
|
isGroupRegistered(groupId: unknown): boolean;
|
|
329
291
|
protected abstract getGroupId(data: TIdData): unknown;
|
|
330
292
|
protected abstract getGroupMemberId(data: TIdData): unknown;
|
|
331
293
|
protected abstract createUniqueId(data: TIdData): TId;
|
|
294
|
+
protected get groupIds(): MapIterator<unknown>;
|
|
295
|
+
protected getGroup<T>(groupId: unknown): Map<T, TId> | undefined;
|
|
332
296
|
protected createId(data: TData): TId;
|
|
333
297
|
protected releaseInstance(_instance: TInstance, id: TId): void;
|
|
334
298
|
private findGroupMemberId;
|
|
@@ -339,6 +303,37 @@ declare abstract class SingletonFactoryWithGuid<TData extends TIdData, TInstance
|
|
|
339
303
|
protected createUniqueId(_data: TData): string;
|
|
340
304
|
}
|
|
341
305
|
|
|
306
|
+
type ConstructorType<T = unknown> = new (...args: unknown[]) => T;
|
|
307
|
+
|
|
308
|
+
interface IChainPart {
|
|
309
|
+
context: unknown;
|
|
310
|
+
index: unknown;
|
|
311
|
+
}
|
|
312
|
+
interface IPropertyChange {
|
|
313
|
+
chain?: IChainPart[];
|
|
314
|
+
target: unknown;
|
|
315
|
+
index?: unknown;
|
|
316
|
+
newValue?: unknown;
|
|
317
|
+
arguments?: unknown[];
|
|
318
|
+
setValue?: (value: unknown) => void;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
declare function replaceSetItemAt<T = unknown>(set: Set<T>, oldValue: T, newValue: T): Set<T>;
|
|
322
|
+
|
|
323
|
+
declare function utCDate(year: number, month?: number, date?: number, hours?: number, minutes?: number, seconds?: number, millisecond?: number): Date;
|
|
324
|
+
|
|
325
|
+
interface IISequenceWithIdData {
|
|
326
|
+
sequence: readonly unknown[];
|
|
327
|
+
readonly id: string;
|
|
328
|
+
}
|
|
329
|
+
interface ISequenceWithId extends IISequenceWithIdData, IDisposable {
|
|
330
|
+
}
|
|
331
|
+
interface ISequenceIdFactory {
|
|
332
|
+
create(context: unknown, sequence: unknown[]): ISequenceWithId;
|
|
333
|
+
release(context: unknown, id: string): void;
|
|
334
|
+
get(context: unknown, sequence: unknown[]): ISequenceWithId | undefined;
|
|
335
|
+
}
|
|
336
|
+
|
|
342
337
|
declare class SequenceWithId implements ISequenceWithId {
|
|
343
338
|
readonly id: string;
|
|
344
339
|
readonly sequence: readonly unknown[];
|
|
@@ -357,7 +352,23 @@ declare class SequenceIdFactory implements ISequenceIdFactory {
|
|
|
357
352
|
has(context: unknown, id: string): boolean;
|
|
358
353
|
}
|
|
359
354
|
|
|
360
|
-
|
|
355
|
+
interface IFunctionCallIndexData {
|
|
356
|
+
readonly context: unknown;
|
|
357
|
+
readonly functionName: string;
|
|
358
|
+
readonly arguments: unknown[];
|
|
359
|
+
}
|
|
360
|
+
interface IFunctionCallIndex {
|
|
361
|
+
readonly context: unknown;
|
|
362
|
+
readonly functionName: string;
|
|
363
|
+
readonly argumentsId: IISequenceWithIdData;
|
|
364
|
+
readonly id: string;
|
|
365
|
+
}
|
|
366
|
+
interface IDisposableFunctionCallIndex extends IFunctionCallIndex, IDisposable {
|
|
367
|
+
readonly context: unknown;
|
|
368
|
+
readonly functionName: string;
|
|
369
|
+
readonly argumentsId: IISequenceWithIdData;
|
|
370
|
+
readonly id: string;
|
|
371
|
+
}
|
|
361
372
|
|
|
362
373
|
declare class FunctionCallIndex implements IDisposableFunctionCallIndex {
|
|
363
374
|
readonly context: unknown;
|
|
@@ -372,6 +383,17 @@ declare class FunctionCallIndex implements IDisposableFunctionCallIndex {
|
|
|
372
383
|
dispose(): void;
|
|
373
384
|
}
|
|
374
385
|
|
|
386
|
+
declare class FunctionCallIndexFactory extends SingletonFactory<IISequenceWithIdData, IFunctionCallIndexData, IDisposableFunctionCallIndex> {
|
|
387
|
+
private readonly _sequenceIdFactory;
|
|
388
|
+
constructor(_sequenceIdFactory: ISequenceIdFactory);
|
|
389
|
+
getId(data: IFunctionCallIndexData): IISequenceWithIdData;
|
|
390
|
+
protected createInstance(data: IFunctionCallIndexData, id: ISequenceWithId): IDisposableFunctionCallIndex;
|
|
391
|
+
protected createId(data: IFunctionCallIndexData): ISequenceWithId;
|
|
392
|
+
protected releaseInstance(_: IDisposableFunctionCallIndex, id: ISequenceWithId): void;
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
type IFunctionCallIndexFactory = ISingletonFactory<IISequenceWithIdData, IFunctionCallIndexData, IDisposableFunctionCallIndex>;
|
|
396
|
+
|
|
375
397
|
interface IFunctionCallResultIdInfo {
|
|
376
398
|
arguments: unknown[];
|
|
377
399
|
functionName: string;
|
|
@@ -399,7 +421,6 @@ declare class FunctionCallResultCacheFactory implements IFunctionCallResultCache
|
|
|
399
421
|
|
|
400
422
|
interface IIndexValueAccessor<TContext = unknown, TIndex = unknown> {
|
|
401
423
|
readonly priority: number;
|
|
402
|
-
isAsync(context: TContext, index: TIndex): boolean;
|
|
403
424
|
getResolvedValue(context: TContext, index: TIndex): unknown;
|
|
404
425
|
hasValue(context: TContext, index: TIndex): boolean;
|
|
405
426
|
getValue(context: TContext, index: TIndex): unknown;
|
|
@@ -412,7 +433,6 @@ type IArrayIndexAccessor = IIndexValueAccessor<unknown[], number>;
|
|
|
412
433
|
|
|
413
434
|
declare class ArrayIndexAccessor implements IArrayIndexAccessor {
|
|
414
435
|
readonly priority = 5;
|
|
415
|
-
isAsync(): boolean;
|
|
416
436
|
getIndexes(array: unknown[]): IterableIterator<number>;
|
|
417
437
|
hasValue(array: unknown[], index: number): boolean;
|
|
418
438
|
getResolvedValue(array: unknown[], index: number): unknown;
|
|
@@ -429,7 +449,6 @@ declare class DatePropertyAccessor implements IDatePropertyAccessor {
|
|
|
429
449
|
readonly priority = 0;
|
|
430
450
|
private readonly _setter;
|
|
431
451
|
private readonly _getters;
|
|
432
|
-
isAsync(): boolean;
|
|
433
452
|
getIndexes(): IterableIterator<DateProperty>;
|
|
434
453
|
hasValue(context: Date, index: DateProperty): boolean;
|
|
435
454
|
getResolvedValue(context: Date, index: DateProperty): unknown;
|
|
@@ -443,7 +462,6 @@ declare class IndexValueAccessor implements IIndexValueAccessor {
|
|
|
443
462
|
private readonly _accessors;
|
|
444
463
|
constructor(accessors: readonly IIndexValueAccessor[]);
|
|
445
464
|
getIndexes(context: unknown, index: unknown): IterableIterator<unknown>;
|
|
446
|
-
isAsync(context: unknown, index: unknown): boolean;
|
|
447
465
|
hasValue(context: unknown, index: unknown): boolean;
|
|
448
466
|
getResolvedValue(context: unknown, index: unknown): unknown;
|
|
449
467
|
getValue(context: unknown, index: unknown): unknown;
|
|
@@ -457,7 +475,6 @@ type IMapKeyAccessor = IIndexValueAccessor<Map<unknown, unknown>, unknown>;
|
|
|
457
475
|
declare class MapKeyAccessor implements IMapKeyAccessor {
|
|
458
476
|
readonly priority = 4;
|
|
459
477
|
getIndexes(map: Map<unknown, unknown>): IterableIterator<unknown, unknown, unknown>;
|
|
460
|
-
isAsync(): boolean;
|
|
461
478
|
hasValue(map: Map<unknown, unknown>, key: unknown): boolean;
|
|
462
479
|
getResolvedValue(map: Map<unknown, unknown>, key: unknown): unknown;
|
|
463
480
|
getValue(map: Map<unknown, unknown>, key: unknown): unknown;
|
|
@@ -472,7 +489,6 @@ declare class MethodAccessor implements IMethodAccessor {
|
|
|
472
489
|
readonly priority = 6;
|
|
473
490
|
constructor(_functionCallResultCacheFactory: IFunctionCallResultCacheFactory);
|
|
474
491
|
getIndexes(): IterableIterator<IDisposableFunctionCallIndex>;
|
|
475
|
-
isAsync(): boolean;
|
|
476
492
|
hasValue(context: object, index: IFunctionCallIndex): boolean;
|
|
477
493
|
getResolvedValue(context: object, index: IFunctionCallIndex): unknown;
|
|
478
494
|
getValue(context: unknown, index: IFunctionCallIndex): unknown;
|
|
@@ -491,7 +507,6 @@ declare class ObservableAccessor implements IObservableAccessor {
|
|
|
491
507
|
readonly priority = 2;
|
|
492
508
|
constructor(_resolvedValueCache: IResolvedValueCache);
|
|
493
509
|
getIndexes(): IterableIterator<string>;
|
|
494
|
-
isAsync(): boolean;
|
|
495
510
|
getResolvedValue(context: unknown, index: string): unknown;
|
|
496
511
|
hasValue(context: unknown, index: string): boolean;
|
|
497
512
|
getValue(context: unknown, index: string): unknown;
|
|
@@ -514,7 +529,6 @@ declare class PromiseAccessor implements IPromiseAccessor {
|
|
|
514
529
|
readonly priority = 1;
|
|
515
530
|
constructor(_resolvedValueCache: IResolvedValueCache);
|
|
516
531
|
getIndexes(): IterableIterator<string>;
|
|
517
|
-
isAsync(): boolean;
|
|
518
532
|
hasValue(context: unknown, index: string): boolean;
|
|
519
533
|
getResolvedValue(context: unknown, index: string): unknown;
|
|
520
534
|
getValue(context: unknown, index: string): unknown;
|
|
@@ -530,7 +544,6 @@ type IPropertyValueAccessor = IIndexValueAccessor<object, string>;
|
|
|
530
544
|
|
|
531
545
|
declare class PropertyValueAccessor implements IPropertyValueAccessor {
|
|
532
546
|
readonly priority = 7;
|
|
533
|
-
isAsync(): boolean;
|
|
534
547
|
getIndexes(context: unknown): IterableIterator<string>;
|
|
535
548
|
hasValue(context: unknown, index: string): boolean;
|
|
536
549
|
getResolvedValue(context: unknown, index: string): unknown;
|
|
@@ -551,7 +564,6 @@ type ISetKeyAccessor = IIndexValueAccessor<Set<unknown>, unknown>;
|
|
|
551
564
|
declare class SetKeyAccessor implements ISetKeyAccessor {
|
|
552
565
|
readonly priority = 3;
|
|
553
566
|
getIndexes(set: Set<unknown>): IterableIterator<unknown>;
|
|
554
|
-
isAsync(): boolean;
|
|
555
567
|
hasValue(set: Set<unknown>, key: unknown): boolean;
|
|
556
568
|
getResolvedValue(set: Set<unknown>, key: unknown): unknown;
|
|
557
569
|
getValue(set: Set<unknown>, key: unknown): unknown;
|
|
@@ -584,12 +596,88 @@ declare const RsXCoreInjectionTokens: {
|
|
|
584
596
|
IResolvedValueCache: symbol;
|
|
585
597
|
IDeepCloneExcept: symbol;
|
|
586
598
|
DefaultDeepCloneExcept: symbol;
|
|
599
|
+
IValueMetadataList: symbol;
|
|
600
|
+
ArrayMetadata: symbol;
|
|
601
|
+
DateMetadata: symbol;
|
|
602
|
+
DummyMetadata: symbol;
|
|
603
|
+
MapMetadata: symbol;
|
|
604
|
+
ObservableMetadata: symbol;
|
|
605
|
+
PromiseMetadata: symbol;
|
|
606
|
+
SetMetadata: symbol;
|
|
607
|
+
IValueMetadata: symbol;
|
|
587
608
|
};
|
|
588
609
|
|
|
589
610
|
declare const defaultIndexValueAccessorList: readonly IMultiInjectService[];
|
|
590
611
|
declare const defaultDeeoCloneList: readonly IMultiInjectService[];
|
|
612
|
+
declare const defaultValueMetadataList: readonly IMultiInjectService[];
|
|
591
613
|
declare const RsXCoreModule: ContainerModule;
|
|
592
614
|
|
|
615
|
+
interface IValueMetadata {
|
|
616
|
+
readonly priority: number;
|
|
617
|
+
isAsync(value: unknown): boolean;
|
|
618
|
+
needsProxy(value: unknown): boolean;
|
|
619
|
+
applies(value: unknown): boolean;
|
|
620
|
+
}
|
|
621
|
+
|
|
622
|
+
declare class ArrayMetadata implements IValueMetadata {
|
|
623
|
+
readonly priority = 8;
|
|
624
|
+
isAsync(): boolean;
|
|
625
|
+
needsProxy(): boolean;
|
|
626
|
+
applies(value: unknown): boolean;
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
declare class DateMetadata implements IValueMetadata {
|
|
630
|
+
readonly priority = 7;
|
|
631
|
+
isAsync(): boolean;
|
|
632
|
+
needsProxy(): boolean;
|
|
633
|
+
applies(value: unknown): boolean;
|
|
634
|
+
}
|
|
635
|
+
|
|
636
|
+
declare class DummyMetadata implements IValueMetadata {
|
|
637
|
+
readonly priority = -1000;
|
|
638
|
+
isAsync(): boolean;
|
|
639
|
+
needsProxy(): boolean;
|
|
640
|
+
applies(): boolean;
|
|
641
|
+
}
|
|
642
|
+
|
|
643
|
+
declare class MapMetadata implements IValueMetadata {
|
|
644
|
+
readonly priority = 6;
|
|
645
|
+
isAsync(): boolean;
|
|
646
|
+
needsProxy(): boolean;
|
|
647
|
+
applies(value: unknown): boolean;
|
|
648
|
+
}
|
|
649
|
+
|
|
650
|
+
declare class ObservableMetadata implements IValueMetadata {
|
|
651
|
+
readonly priority = 5;
|
|
652
|
+
isAsync(): boolean;
|
|
653
|
+
needsProxy(): boolean;
|
|
654
|
+
applies(value: unknown): boolean;
|
|
655
|
+
}
|
|
656
|
+
|
|
657
|
+
declare class PromiseMetadata implements IValueMetadata {
|
|
658
|
+
readonly priority = 4;
|
|
659
|
+
isAsync(): boolean;
|
|
660
|
+
needsProxy(): boolean;
|
|
661
|
+
applies(value: unknown): boolean;
|
|
662
|
+
}
|
|
663
|
+
|
|
664
|
+
declare class SetMetadata implements IValueMetadata {
|
|
665
|
+
readonly priority = 3;
|
|
666
|
+
isAsync(): boolean;
|
|
667
|
+
needsProxy(): boolean;
|
|
668
|
+
applies(value: unknown): boolean;
|
|
669
|
+
}
|
|
670
|
+
|
|
671
|
+
declare class ValueMetadata implements IValueMetadata {
|
|
672
|
+
readonly priority = 11;
|
|
673
|
+
private readonly _valueMetadataList;
|
|
674
|
+
constructor(valueMetadataList: readonly IValueMetadata[]);
|
|
675
|
+
isAsync(value: unknown): boolean;
|
|
676
|
+
needsProxy(value: unknown): boolean;
|
|
677
|
+
applies(value: unknown): boolean;
|
|
678
|
+
private getValueMetadata;
|
|
679
|
+
}
|
|
680
|
+
|
|
593
681
|
interface WaitOptions<T extends {
|
|
594
682
|
[K in E]: Observable<R>;
|
|
595
683
|
}, E extends keyof T, R> {
|
|
@@ -612,4 +700,4 @@ declare class WaitForEvent<T extends {
|
|
|
612
700
|
private unsubscribeEvent;
|
|
613
701
|
}
|
|
614
702
|
|
|
615
|
-
export { type AnyFunction, ArgumentException, ArrayIndexAccessor, Assertion, type BindMethod, type CheckValidKey, type ConstructorType, type DateProperty, DatePropertyAccessor, DeepCloneValueExcept, DefaultDeepClone, EqualityService, ErrorLog, FunctionCallIndex, FunctionCallIndexFactory, FunctionCallResultCacheFactory, type GetFunction, GuidFactory, type IArrayIndexAccessor, type IChainPart, type IDatePropertyAccessor, type IDeepClone, type IDeepCloneExcept, type IDisposable, type IDisposableFunctionCallIndex, type IDisposableOwner, type IEqualityService, type IError, type IErrorLog, type IFunctionCallIndex, type IFunctionCallIndexData, type IFunctionCallIndexFactory, type IFunctionCallResult, type IFunctionCallResultCache, type IFunctionCallResultCacheFactory, type IFunctionCallResultIdInfo, type IGuidFactory, type IISequenceWithIdData, type IIndexValueAccessor, type IMapKeyAccessor, type IMethodAccessor, type IMultiInjectService, type IMultiInjectTokens, type IObservableAccessor, type IPromiseAccessor, type IPropertyChange, type IPropertyDescriptor, type IPropertyValueAccessor, type IResolvedValueCache, type ISequenceIdFactory, type ISequenceWithId, type ISetKeyAccessor, type ISingletonFactory, type ISingletonFactoryWithIdGeneration, IndexValueAccessor, InjectionContainer, InvalidCastException, InvalidOperationException, type LastValuObservable, LodashDeepClone, MapKeyAccessor, MethodAccessor, NullOrEmptyException, NullOrUndefinedException, ObservableAccessor, PENDING, ParserException, PrettyPrinter, PromiseAccessor, PropertyDescriptorType, PropertyValueAccessor, ResolvedValueCache, RsXCoreInjectionTokens, RsXCoreModule, SequenceIdFactory, SequenceWithId, type SetFunction, SetKeyAccessor, SingletonFactory, SingletonFactoryWithGuid, SingletonFactoryWithIdGeneration, StructuredDeepClone, Type, UnexpectedException, UnsupportedException, WaitForEvent, dataProperties, defaultDeeoCloneList, defaultIndexValueAccessorList, echo, emptyFunction, emptyValue, overrideMultiInjectServices, printValue, registerMultiInjectService, registerMultiInjectServices, replaceSetItemAt, truePredicate, utCDate };
|
|
703
|
+
export { type AnyFunction, ArgumentException, ArrayIndexAccessor, ArrayMetadata, Assertion, AssertionError, type BindMethod, type CheckValidKey, type ConstructorType, CustomError, DateMetadata, type DateProperty, DatePropertyAccessor, DeepCloneValueExcept, DefaultDeepClone, DummyMetadata, EqualityService, ErrorLog, FunctionCallIndex, FunctionCallIndexFactory, FunctionCallResultCacheFactory, type GetFunction, GuidFactory, type IArrayIndexAccessor, type IChainPart, type IDatePropertyAccessor, type IDeepClone, type IDeepCloneExcept, type IDisposable, type IDisposableFunctionCallIndex, type IDisposableOwner, type IEqualityService, type IError, type IErrorLog, type IFunctionCallIndex, type IFunctionCallIndexData, type IFunctionCallIndexFactory, type IFunctionCallResult, type IFunctionCallResultCache, type IFunctionCallResultCacheFactory, type IFunctionCallResultIdInfo, type IGuidFactory, type IISequenceWithIdData, type IIndexValueAccessor, type IInstanceGroupInfo, type IMapKeyAccessor, type IMethodAccessor, type IMultiInjectService, type IMultiInjectTokens, type IObservableAccessor, type IPromiseAccessor, type IPropertyChange, type IPropertyDescriptor, type IPropertyValueAccessor, type IResolvedValueCache, type ISequenceIdFactory, type ISequenceWithId, type ISetKeyAccessor, type ISingletonFactory, type ISingletonFactoryWithIdGeneration, type IValueMetadata, IndexValueAccessor, InjectionContainer, InvalidCastException, InvalidOperationException, type LastValuObservable, LodashDeepClone, MapKeyAccessor, MapMetadata, MethodAccessor, NullOrEmptyException, NullOrUndefinedException, ObservableAccessor, ObservableMetadata, PENDING, ParserException, PrettyPrinter, PromiseAccessor, PromiseMetadata, PropertyDescriptorType, PropertyValueAccessor, ResolvedValueCache, RsXCoreInjectionTokens, RsXCoreModule, SequenceIdFactory, SequenceWithId, type SetFunction, SetKeyAccessor, SetMetadata, SingletonFactory, SingletonFactoryWithGuid, SingletonFactoryWithIdGeneration, StructuredDeepClone, Type, UnexpectedException, UnsupportedException, ValueMetadata, WaitForEvent, dataProperties, defaultDeeoCloneList, defaultIndexValueAccessorList, defaultValueMetadataList, echo, emptyFunction, emptyValue, overrideMultiInjectServices, printValue, registerMultiInjectService, registerMultiInjectServices, replaceSetItemAt, truePredicate, utCDate };
|