@navios/di 0.1.7 → 0.1.9
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/README.md +78 -0
- package/docs/README.md +81 -0
- package/lib/index.d.mts +435 -0
- package/lib/index.d.mts.map +1 -0
- package/lib/index.d.ts +435 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +795 -0
- package/lib/index.mjs +738 -0
- package/lib/index.mjs.map +1 -0
- package/package.json +9 -18
- package/project.json +50 -0
- package/src/__type-tests__/inject.spec-d.mts +99 -0
- package/src/__type-tests__/injectable.spec-d.mts +289 -0
- package/src/decorators/injectable.decorator.mts +58 -35
- package/src/injection-token.mts +19 -4
- package/src/interfaces/factory.interface.mts +3 -2
- package/src/resolve-service.mts +3 -5
- package/src/service-locator.mts +1 -1
- package/src/utils/get-injectors.mts +57 -11
- package/tsconfig.json +8 -0
- package/tsdown.config.mts +10 -0
- package/vitest.config.mts +9 -0
- package/dist/_tsup-dts-rollup.d.mts +0 -541
- package/dist/_tsup-dts-rollup.d.ts +0 -541
- package/dist/index.d.mts +0 -59
- package/dist/index.d.ts +0 -59
- package/dist/index.js +0 -1026
- package/dist/index.mjs +0 -967
|
@@ -1,541 +0,0 @@
|
|
|
1
|
-
import type { AnyZodObject } from 'zod';
|
|
2
|
-
import { z } from 'zod';
|
|
3
|
-
import { ZodOptional } from 'zod';
|
|
4
|
-
import { ZodRecord } from 'zod';
|
|
5
|
-
|
|
6
|
-
declare type BaseInjectionTokenSchemaType = AnyZodObject | ZodRecord;
|
|
7
|
-
export { BaseInjectionTokenSchemaType }
|
|
8
|
-
export { BaseInjectionTokenSchemaType as BaseInjectionTokenSchemaType_alias_1 }
|
|
9
|
-
|
|
10
|
-
declare class BoundInjectionToken<T, S extends InjectionTokenSchemaType> {
|
|
11
|
-
readonly token: InjectionToken<T, S>;
|
|
12
|
-
readonly value: z.input<S>;
|
|
13
|
-
id: string;
|
|
14
|
-
name: string | symbol | ClassType;
|
|
15
|
-
schema: InjectionTokenSchemaType;
|
|
16
|
-
constructor(token: InjectionToken<T, S>, value: z.input<S>);
|
|
17
|
-
toString(): string;
|
|
18
|
-
}
|
|
19
|
-
export { BoundInjectionToken }
|
|
20
|
-
export { BoundInjectionToken as BoundInjectionToken_alias_1 }
|
|
21
|
-
|
|
22
|
-
declare type ChannelEmitter<Events extends EventsConfig, Ns extends string, E extends EventsNames<Events>> = {
|
|
23
|
-
emit<Args extends EventsArgs<Events, E>>(ns: Ns, event: E, ...args: Args): Promise<any>;
|
|
24
|
-
};
|
|
25
|
-
export { ChannelEmitter }
|
|
26
|
-
export { ChannelEmitter as ChannelEmitter_alias_1 }
|
|
27
|
-
|
|
28
|
-
declare type ClassType = new (...args: any[]) => any;
|
|
29
|
-
export { ClassType }
|
|
30
|
-
export { ClassType as ClassType_alias_1 }
|
|
31
|
-
|
|
32
|
-
declare type ClassTypeWithArgument<Arg> = new (arg: Arg) => any;
|
|
33
|
-
export { ClassTypeWithArgument }
|
|
34
|
-
export { ClassTypeWithArgument as ClassTypeWithArgument_alias_1 }
|
|
35
|
-
|
|
36
|
-
declare type ClassTypeWithInstance<T> = new (...args: any[]) => T;
|
|
37
|
-
export { ClassTypeWithInstance }
|
|
38
|
-
export { ClassTypeWithInstance as ClassTypeWithInstance_alias_1 }
|
|
39
|
-
|
|
40
|
-
declare type ClassTypeWithInstanceAndArgument<T, Arg> = new (arg: Arg) => T;
|
|
41
|
-
export { ClassTypeWithInstanceAndArgument }
|
|
42
|
-
export { ClassTypeWithInstanceAndArgument as ClassTypeWithInstanceAndArgument_alias_1 }
|
|
43
|
-
|
|
44
|
-
declare interface CreateInjectorsOptions {
|
|
45
|
-
baseLocator: ServiceLocator;
|
|
46
|
-
}
|
|
47
|
-
export { CreateInjectorsOptions }
|
|
48
|
-
export { CreateInjectorsOptions as CreateInjectorsOptions_alias_1 }
|
|
49
|
-
export { CreateInjectorsOptions as CreateInjectorsOptions_alias_2 }
|
|
50
|
-
|
|
51
|
-
declare enum ErrorsEnum {
|
|
52
|
-
InstanceExpired = "InstanceExpired",
|
|
53
|
-
InstanceNotFound = "InstanceNotFound",
|
|
54
|
-
InstanceDestroying = "InstanceDestroying",
|
|
55
|
-
UnknownError = "UnknownError",
|
|
56
|
-
FactoryNotFound = "FactoryNotFound",
|
|
57
|
-
FactoryTokenNotResolved = "FactoryTokenNotResolved"
|
|
58
|
-
}
|
|
59
|
-
export { ErrorsEnum }
|
|
60
|
-
export { ErrorsEnum as ErrorsEnum_alias_1 }
|
|
61
|
-
export { ErrorsEnum as ErrorsEnum_alias_2 }
|
|
62
|
-
|
|
63
|
-
declare class EventEmitter<Events extends EventsConfig = {}> implements EventEmitterInterface<Events> {
|
|
64
|
-
private listeners;
|
|
65
|
-
on<E extends EventsNames<Events>, Args extends EventsArgs<Events, E>>(event: E, listener: (...args: Args) => void): () => void;
|
|
66
|
-
off<E extends EventsNames<Events>, Args extends EventsArgs<Events, E>>(event: E, listener: (...args: Args) => void): void;
|
|
67
|
-
once<E extends EventsNames<Events>, Args extends EventsArgs<Events, E>>(event: E, listener: (...args: Args) => void): () => void;
|
|
68
|
-
emit<E extends EventsNames<Events>, Args extends EventsArgs<Events, E>>(event: E, ...args: Args): Promise<any>;
|
|
69
|
-
addChannel<E extends EventsNames<Events>, Ns extends string, Emitter extends ChannelEmitter<Events, Ns, E>>(ns: Ns, event: E, target: Emitter): () => void;
|
|
70
|
-
}
|
|
71
|
-
export { EventEmitter }
|
|
72
|
-
export { EventEmitter as EventEmitter_alias_1 }
|
|
73
|
-
|
|
74
|
-
declare interface EventEmitterInterface<Events extends EventsConfig> {
|
|
75
|
-
on<E extends EventsNames<Events>, Args extends EventsArgs<Events, E>>(event: E, listener: (...args: Args) => void): () => void;
|
|
76
|
-
emit<E extends EventsNames<Events>, Args extends EventsArgs<Events, E>>(event: E, ...args: Args): void;
|
|
77
|
-
addChannel<E extends EventsNames<Events>, Ns extends string, Emmiter extends ChannelEmitter<Events, Ns, E>>(ns: Ns, event: E, target: Emmiter): () => void;
|
|
78
|
-
}
|
|
79
|
-
export { EventEmitterInterface }
|
|
80
|
-
export { EventEmitterInterface as EventEmitterInterface_alias_1 }
|
|
81
|
-
|
|
82
|
-
declare type EventsArgs<Events extends EventsConfig, Name extends EventsNames<Events>> = Events[Name] extends any[] ? Events[Name] : [];
|
|
83
|
-
export { EventsArgs }
|
|
84
|
-
export { EventsArgs as EventsArgs_alias_1 }
|
|
85
|
-
|
|
86
|
-
declare type EventsConfig = {
|
|
87
|
-
[event: string]: any[];
|
|
88
|
-
};
|
|
89
|
-
export { EventsConfig }
|
|
90
|
-
export { EventsConfig as EventsConfig_alias_1 }
|
|
91
|
-
|
|
92
|
-
declare type EventsNames<Events extends EventsConfig> = Exclude<keyof Events, symbol | number>;
|
|
93
|
-
export { EventsNames }
|
|
94
|
-
export { EventsNames as EventsNames_alias_1 }
|
|
95
|
-
|
|
96
|
-
declare interface Factory<T> {
|
|
97
|
-
create(ctx?: any): Promise<T> | T;
|
|
98
|
-
}
|
|
99
|
-
export { Factory }
|
|
100
|
-
export { Factory as Factory_alias_1 }
|
|
101
|
-
export { Factory as Factory_alias_2 }
|
|
102
|
-
|
|
103
|
-
declare interface FactoryContext {
|
|
104
|
-
inject: Injectors['inject'];
|
|
105
|
-
on: ServiceLocatorEventBus['on'];
|
|
106
|
-
getDependencies: () => string[];
|
|
107
|
-
invalidate: () => void;
|
|
108
|
-
addEffect: (listener: () => void) => void;
|
|
109
|
-
getDestroyListeners: () => (() => void)[];
|
|
110
|
-
setTtl: (ttl: number) => void;
|
|
111
|
-
getTtl: () => number;
|
|
112
|
-
locator: ServiceLocator;
|
|
113
|
-
}
|
|
114
|
-
export { FactoryContext }
|
|
115
|
-
export { FactoryContext as FactoryContext_alias_1 }
|
|
116
|
-
|
|
117
|
-
declare class FactoryInjectionToken<T, S extends InjectionTokenSchemaType> {
|
|
118
|
-
readonly token: InjectionToken<T, S>;
|
|
119
|
-
readonly factory: () => Promise<z.input<S>>;
|
|
120
|
-
value?: z.input<S>;
|
|
121
|
-
resolved: boolean;
|
|
122
|
-
id: string;
|
|
123
|
-
name: string | symbol | ClassType;
|
|
124
|
-
schema: InjectionTokenSchemaType;
|
|
125
|
-
constructor(token: InjectionToken<T, S>, factory: () => Promise<z.input<S>>);
|
|
126
|
-
resolve(): Promise<z.input<S>>;
|
|
127
|
-
toString(): string;
|
|
128
|
-
}
|
|
129
|
-
export { FactoryInjectionToken }
|
|
130
|
-
export { FactoryInjectionToken as FactoryInjectionToken_alias_1 }
|
|
131
|
-
|
|
132
|
-
declare class FactoryNotFound extends Error {
|
|
133
|
-
name: string;
|
|
134
|
-
code: ErrorsEnum;
|
|
135
|
-
constructor(name: string);
|
|
136
|
-
}
|
|
137
|
-
export { FactoryNotFound }
|
|
138
|
-
export { FactoryNotFound as FactoryNotFound_alias_1 }
|
|
139
|
-
export { FactoryNotFound as FactoryNotFound_alias_2 }
|
|
140
|
-
|
|
141
|
-
declare type FactoryRecord<Instance = any, Schema = any> = {
|
|
142
|
-
scope: InjectableScope;
|
|
143
|
-
originalToken: InjectionToken<Instance, Schema>;
|
|
144
|
-
factory: InjectionFactory<Instance, Schema extends AnyZodObject ? z.input<Schema> : unknown>;
|
|
145
|
-
};
|
|
146
|
-
export { FactoryRecord }
|
|
147
|
-
export { FactoryRecord as FactoryRecord_alias_1 }
|
|
148
|
-
|
|
149
|
-
declare class FactoryTokenNotResolved extends Error {
|
|
150
|
-
code: ErrorsEnum;
|
|
151
|
-
constructor(name: string | symbol | ClassType);
|
|
152
|
-
}
|
|
153
|
-
export { FactoryTokenNotResolved }
|
|
154
|
-
export { FactoryTokenNotResolved as FactoryTokenNotResolved_alias_1 }
|
|
155
|
-
export { FactoryTokenNotResolved as FactoryTokenNotResolved_alias_2 }
|
|
156
|
-
|
|
157
|
-
declare interface FactoryWithArgs<T, A extends InjectionTokenSchemaType> {
|
|
158
|
-
create(ctx: any, args: z.output<A>): Promise<T> | T;
|
|
159
|
-
}
|
|
160
|
-
export { FactoryWithArgs }
|
|
161
|
-
export { FactoryWithArgs as FactoryWithArgs_alias_1 }
|
|
162
|
-
export { FactoryWithArgs as FactoryWithArgs_alias_2 }
|
|
163
|
-
|
|
164
|
-
declare function getGlobalServiceLocator(): ServiceLocator;
|
|
165
|
-
export { getGlobalServiceLocator }
|
|
166
|
-
export { getGlobalServiceLocator as getGlobalServiceLocator_alias_1 }
|
|
167
|
-
|
|
168
|
-
declare function getInjectableToken<R>(target: ClassType): R extends {
|
|
169
|
-
create(...args: any[]): infer V;
|
|
170
|
-
} ? InjectionToken<V> : InjectionToken<R>;
|
|
171
|
-
export { getInjectableToken }
|
|
172
|
-
export { getInjectableToken as getInjectableToken_alias_1 }
|
|
173
|
-
export { getInjectableToken as getInjectableToken_alias_2 }
|
|
174
|
-
|
|
175
|
-
declare function getInjectors({ baseLocator }: CreateInjectorsOptions): Injectors;
|
|
176
|
-
export { getInjectors }
|
|
177
|
-
export { getInjectors as getInjectors_alias_1 }
|
|
178
|
-
export { getInjectors as getInjectors_alias_2 }
|
|
179
|
-
|
|
180
|
-
declare const globalRegistry: Registry;
|
|
181
|
-
export { globalRegistry }
|
|
182
|
-
export { globalRegistry as globalRegistry_alias_1 }
|
|
183
|
-
|
|
184
|
-
declare const inject: Injectors['inject'];
|
|
185
|
-
export { inject }
|
|
186
|
-
export { inject as inject_alias_1 }
|
|
187
|
-
|
|
188
|
-
declare function Injectable(): <T extends ClassType>(target: T, context: ClassDecoratorContext) => T;
|
|
189
|
-
|
|
190
|
-
declare function Injectable<R>(options: {
|
|
191
|
-
scope?: InjectableScope;
|
|
192
|
-
type: InjectableType.Factory;
|
|
193
|
-
}): <T extends ClassTypeWithInstance<Factory<R>>>(target: T, context: ClassDecoratorContext) => T;
|
|
194
|
-
|
|
195
|
-
declare function Injectable<S extends InjectionTokenSchemaType>(options: {
|
|
196
|
-
scope?: InjectableScope;
|
|
197
|
-
type?: InjectableType.Class;
|
|
198
|
-
token: InjectionToken<undefined, S>;
|
|
199
|
-
}): <T extends ClassTypeWithArgument<z.output<S>>>(target: T, context: ClassDecoratorContext) => T;
|
|
200
|
-
|
|
201
|
-
declare function Injectable<R, S extends InjectionTokenSchemaType>(options: {
|
|
202
|
-
scope?: InjectableScope;
|
|
203
|
-
type?: InjectableType.Class;
|
|
204
|
-
token: InjectionToken<R, S>;
|
|
205
|
-
}): <T extends ClassTypeWithInstanceAndArgument<R, z.output<S>>>(target: T, context: ClassDecoratorContext) => T;
|
|
206
|
-
|
|
207
|
-
declare function Injectable<T extends ClassType>(options: {
|
|
208
|
-
scope?: InjectableScope;
|
|
209
|
-
token: InjectionToken<T, undefined>;
|
|
210
|
-
}): (target: T, context: ClassDecoratorContext) => T;
|
|
211
|
-
|
|
212
|
-
declare function Injectable<R, S extends InjectionTokenSchemaType>(options: {
|
|
213
|
-
scope?: InjectableScope;
|
|
214
|
-
type: InjectableType.Factory;
|
|
215
|
-
token: InjectionToken<R, S>;
|
|
216
|
-
}): <T extends ClassTypeWithInstance<FactoryWithArgs<R, S>>>(target: T, context: ClassDecoratorContext) => T;
|
|
217
|
-
|
|
218
|
-
declare function Injectable<R>(options: {
|
|
219
|
-
scope?: InjectableScope;
|
|
220
|
-
type: InjectableType.Factory;
|
|
221
|
-
token: InjectionToken<R, undefined>;
|
|
222
|
-
}): <T extends ClassTypeWithInstance<Factory<R>>>(target: T, context: ClassDecoratorContext) => T;
|
|
223
|
-
export { Injectable }
|
|
224
|
-
export { Injectable as Injectable_alias_1 }
|
|
225
|
-
export { Injectable as Injectable_alias_2 }
|
|
226
|
-
|
|
227
|
-
declare interface InjectableOptions {
|
|
228
|
-
scope?: InjectableScope;
|
|
229
|
-
type?: InjectableType;
|
|
230
|
-
token?: InjectionToken<any, any>;
|
|
231
|
-
registry?: Registry;
|
|
232
|
-
}
|
|
233
|
-
export { InjectableOptions }
|
|
234
|
-
export { InjectableOptions as InjectableOptions_alias_1 }
|
|
235
|
-
export { InjectableOptions as InjectableOptions_alias_2 }
|
|
236
|
-
|
|
237
|
-
declare enum InjectableScope {
|
|
238
|
-
/**
|
|
239
|
-
* Singleton scope: The instance is created once and shared across the application.
|
|
240
|
-
*/
|
|
241
|
-
Singleton = "Singleton",
|
|
242
|
-
/**
|
|
243
|
-
* Instance scope: A new instance is created for each injection.
|
|
244
|
-
*/
|
|
245
|
-
Instance = "Instance"
|
|
246
|
-
}
|
|
247
|
-
export { InjectableScope }
|
|
248
|
-
export { InjectableScope as InjectableScope_alias_1 }
|
|
249
|
-
export { InjectableScope as InjectableScope_alias_2 }
|
|
250
|
-
|
|
251
|
-
declare const InjectableTokenMeta: unique symbol;
|
|
252
|
-
export { InjectableTokenMeta }
|
|
253
|
-
export { InjectableTokenMeta as InjectableTokenMeta_alias_1 }
|
|
254
|
-
export { InjectableTokenMeta as InjectableTokenMeta_alias_2 }
|
|
255
|
-
|
|
256
|
-
declare enum InjectableType {
|
|
257
|
-
Class = "Class",
|
|
258
|
-
Factory = "Factory"
|
|
259
|
-
}
|
|
260
|
-
export { InjectableType }
|
|
261
|
-
export { InjectableType as InjectableType_alias_1 }
|
|
262
|
-
export { InjectableType as InjectableType_alias_2 }
|
|
263
|
-
|
|
264
|
-
declare type InjectionFactory<T = unknown, Args = unknown> = (ctx: FactoryContext, args: Args) => Promise<T>;
|
|
265
|
-
export { InjectionFactory }
|
|
266
|
-
export { InjectionFactory as InjectionFactory_alias_1 }
|
|
267
|
-
|
|
268
|
-
declare class InjectionToken<T, S extends InjectionTokenSchemaType | unknown = unknown> {
|
|
269
|
-
readonly name: string | symbol | ClassType;
|
|
270
|
-
readonly schema: AnyZodObject | undefined;
|
|
271
|
-
id: `${string}-${string}-${string}-${string}-${string}`;
|
|
272
|
-
private formattedName;
|
|
273
|
-
constructor(name: string | symbol | ClassType, schema: AnyZodObject | undefined);
|
|
274
|
-
static create<T extends ClassType>(name: T): InjectionToken<InstanceType<T>, undefined>;
|
|
275
|
-
static create<T extends ClassType, Schema extends InjectionTokenSchemaType>(name: T, schema: Schema): InjectionToken<InstanceType<T>, Schema>;
|
|
276
|
-
static create<T>(name: string | symbol): InjectionToken<T, undefined>;
|
|
277
|
-
static create<T, Schema extends InjectionTokenSchemaType>(name: string | any, schema: Schema): InjectionToken<T, Schema>;
|
|
278
|
-
static bound<T, S extends InjectionTokenSchemaType>(token: InjectionToken<T, S>, value: z.input<S>): BoundInjectionToken<T, S>;
|
|
279
|
-
static factory<T, S extends InjectionTokenSchemaType>(token: InjectionToken<T, S>, factory: () => Promise<z.input<S>>): FactoryInjectionToken<T, S>;
|
|
280
|
-
static refineType<T>(token: BoundInjectionToken<any, any>): BoundInjectionToken<T, any>;
|
|
281
|
-
toString(): string;
|
|
282
|
-
}
|
|
283
|
-
export { InjectionToken }
|
|
284
|
-
export { InjectionToken as InjectionToken_alias_1 }
|
|
285
|
-
|
|
286
|
-
declare type InjectionTokenSchemaType = BaseInjectionTokenSchemaType | OptionalInjectionTokenSchemaType;
|
|
287
|
-
export { InjectionTokenSchemaType }
|
|
288
|
-
export { InjectionTokenSchemaType as InjectionTokenSchemaType_alias_1 }
|
|
289
|
-
|
|
290
|
-
declare interface Injectors {
|
|
291
|
-
inject<T extends ClassType>(token: T): Promise<InstanceType<T>>;
|
|
292
|
-
inject<T, S extends BaseInjectionTokenSchemaType>(token: InjectionToken<T, S>, args: z.input<S>): Promise<T>;
|
|
293
|
-
inject<T, S extends OptionalInjectionTokenSchemaType>(token: InjectionToken<T, S>, args?: z.input<S>): Promise<T>;
|
|
294
|
-
inject<T>(token: InjectionToken<T, undefined>): Promise<T>;
|
|
295
|
-
inject<T>(token: BoundInjectionToken<T, any>): Promise<T>;
|
|
296
|
-
inject<T>(token: FactoryInjectionToken<T, any>): Promise<T>;
|
|
297
|
-
syncInject<T extends ClassType>(token: T): InstanceType<T>;
|
|
298
|
-
syncInject<T, S extends BaseInjectionTokenSchemaType>(token: InjectionToken<T, S>, args: z.input<S>): T;
|
|
299
|
-
syncInject<T, S extends OptionalInjectionTokenSchemaType>(token: InjectionToken<T, S>, args?: z.input<S>): T;
|
|
300
|
-
syncInject<T>(token: InjectionToken<T, undefined>): T;
|
|
301
|
-
syncInject<T>(token: BoundInjectionToken<T, any>): T;
|
|
302
|
-
syncInject<T>(token: FactoryInjectionToken<T, any>): T;
|
|
303
|
-
wrapSyncInit(cb: () => any): () => [any, Promise<any>[]];
|
|
304
|
-
provideServiceLocator(locator: ServiceLocator): ServiceLocator;
|
|
305
|
-
}
|
|
306
|
-
export { Injectors }
|
|
307
|
-
export { Injectors as Injectors_alias_1 }
|
|
308
|
-
export { Injectors as Injectors_alias_2 }
|
|
309
|
-
|
|
310
|
-
declare const InjectorsBase: Map<ServiceLocator, Injectors>;
|
|
311
|
-
export { InjectorsBase }
|
|
312
|
-
export { InjectorsBase as InjectorsBase_alias_1 }
|
|
313
|
-
export { InjectorsBase as InjectorsBase_alias_2 }
|
|
314
|
-
|
|
315
|
-
declare class InstanceDestroying extends Error {
|
|
316
|
-
name: string;
|
|
317
|
-
code: ErrorsEnum;
|
|
318
|
-
constructor(name: string);
|
|
319
|
-
}
|
|
320
|
-
export { InstanceDestroying }
|
|
321
|
-
export { InstanceDestroying as InstanceDestroying_alias_1 }
|
|
322
|
-
export { InstanceDestroying as InstanceDestroying_alias_2 }
|
|
323
|
-
|
|
324
|
-
declare class InstanceExpired extends Error {
|
|
325
|
-
name: string;
|
|
326
|
-
code: ErrorsEnum;
|
|
327
|
-
constructor(name: string);
|
|
328
|
-
}
|
|
329
|
-
export { InstanceExpired }
|
|
330
|
-
export { InstanceExpired as InstanceExpired_alias_1 }
|
|
331
|
-
export { InstanceExpired as InstanceExpired_alias_2 }
|
|
332
|
-
|
|
333
|
-
declare class InstanceNotFound extends Error {
|
|
334
|
-
name: string;
|
|
335
|
-
code: ErrorsEnum;
|
|
336
|
-
constructor(name: string);
|
|
337
|
-
}
|
|
338
|
-
export { InstanceNotFound }
|
|
339
|
-
export { InstanceNotFound as InstanceNotFound_alias_1 }
|
|
340
|
-
export { InstanceNotFound as InstanceNotFound_alias_2 }
|
|
341
|
-
|
|
342
|
-
declare function makeProxyServiceLocator(serviceLocator: ServiceLocator, ctx: FactoryContext): ServiceLocator;
|
|
343
|
-
export { makeProxyServiceLocator }
|
|
344
|
-
export { makeProxyServiceLocator as makeProxyServiceLocator_alias_1 }
|
|
345
|
-
|
|
346
|
-
declare type OptionalInjectionTokenSchemaType = ZodOptional<AnyZodObject> | ZodOptional<ZodRecord>;
|
|
347
|
-
export { OptionalInjectionTokenSchemaType }
|
|
348
|
-
export { OptionalInjectionTokenSchemaType as OptionalInjectionTokenSchemaType_alias_1 }
|
|
349
|
-
|
|
350
|
-
declare const provideServiceLocator: Injectors['provideServiceLocator'];
|
|
351
|
-
export { provideServiceLocator }
|
|
352
|
-
export { provideServiceLocator as provideServiceLocator_alias_1 }
|
|
353
|
-
|
|
354
|
-
declare class ProxyServiceLocator implements ServiceLocator {
|
|
355
|
-
private readonly serviceLocator;
|
|
356
|
-
private readonly ctx;
|
|
357
|
-
constructor(serviceLocator: ServiceLocator, ctx: FactoryContext);
|
|
358
|
-
getEventBus(): ServiceLocatorEventBus;
|
|
359
|
-
getInstance(token: InjectionToken<any, any> | BoundInjectionToken<any, any> | FactoryInjectionToken<any, any>, args?: any): Promise<any[]>;
|
|
360
|
-
getOrThrowInstance<Instance, Schema extends AnyZodObject | ZodOptional<AnyZodObject> | undefined>(token: InjectionToken<Instance, Schema>, args: Schema extends AnyZodObject ? z.input<Schema> : Schema extends ZodOptional<AnyZodObject> ? z.input<Schema> | undefined : undefined): Promise<Instance>;
|
|
361
|
-
getSyncInstance<Instance, Schema extends AnyZodObject | ZodOptional<AnyZodObject> | undefined>(token: InjectionToken<Instance, Schema>, args: Schema extends AnyZodObject ? z.input<Schema> : Schema extends ZodOptional<AnyZodObject> ? z.input<Schema> | undefined : undefined): Instance | null;
|
|
362
|
-
invalidate(service: string, round?: number): Promise<any>;
|
|
363
|
-
ready(): Promise<null>;
|
|
364
|
-
makeInstanceName(token: InjectionToken<any, any>, args: any): string;
|
|
365
|
-
}
|
|
366
|
-
export { ProxyServiceLocator }
|
|
367
|
-
export { ProxyServiceLocator as ProxyServiceLocator_alias_1 }
|
|
368
|
-
|
|
369
|
-
declare class Registry {
|
|
370
|
-
private readonly parent?;
|
|
371
|
-
private readonly factories;
|
|
372
|
-
constructor(parent?: Registry | undefined);
|
|
373
|
-
has(token: InjectionToken<any, any>): boolean;
|
|
374
|
-
get<Instance, Schema>(token: InjectionToken<Instance, Schema>): FactoryRecord<Instance, Schema>;
|
|
375
|
-
set<Instance, Schema>(token: InjectionToken<Instance, Schema>, factory: InjectionFactory, scope: InjectableScope): void;
|
|
376
|
-
delete(token: InjectionToken<any, any>): void;
|
|
377
|
-
}
|
|
378
|
-
export { Registry }
|
|
379
|
-
export { Registry as Registry_alias_1 }
|
|
380
|
-
|
|
381
|
-
declare function resolveService<T extends ClassType>(ctx: FactoryContext, target: T, args?: any[]): Promise<InstanceType<T>>;
|
|
382
|
-
export { resolveService }
|
|
383
|
-
export { resolveService as resolveService_alias_1 }
|
|
384
|
-
|
|
385
|
-
declare class ServiceLocator {
|
|
386
|
-
private readonly registry;
|
|
387
|
-
private readonly logger;
|
|
388
|
-
private readonly eventBus;
|
|
389
|
-
private readonly manager;
|
|
390
|
-
constructor(registry?: Registry, logger?: Console | null);
|
|
391
|
-
getEventBus(): ServiceLocatorEventBus;
|
|
392
|
-
storeInstance<Instance>(instance: Instance, token: BoundInjectionToken<Instance, any>): void;
|
|
393
|
-
storeInstance<Instance>(instance: Instance, token: FactoryInjectionToken<Instance, any>): void;
|
|
394
|
-
storeInstance<Instance>(instance: Instance, token: InjectionToken<Instance, undefined>): void;
|
|
395
|
-
storeInstance<Instance, Schema extends AnyZodObject | ZodOptional<AnyZodObject>>(instance: Instance, token: InjectionToken<Instance, Schema>, args: z.input<Schema>): void;
|
|
396
|
-
removeInstance<Instance>(token: BoundInjectionToken<Instance, any>): void;
|
|
397
|
-
removeInstance<Instance>(token: FactoryInjectionToken<Instance, any>): void;
|
|
398
|
-
removeInstance<Instance>(token: InjectionToken<Instance, undefined>): void;
|
|
399
|
-
removeInstance<Instance, Schema extends BaseInjectionTokenSchemaType>(token: InjectionToken<Instance, Schema>, args: z.input<Schema>): void;
|
|
400
|
-
removeInstance<Instance, Schema extends OptionalInjectionTokenSchemaType>(token: InjectionToken<Instance, Schema>, args?: z.input<Schema>): void;
|
|
401
|
-
private resolveTokenArgs;
|
|
402
|
-
getInstanceIdentifier<Instance, Schema extends BaseInjectionTokenSchemaType>(token: InjectionToken<Instance, Schema>, args: z.input<Schema>): string;
|
|
403
|
-
getInstanceIdentifier<Instance, Schema extends OptionalInjectionTokenSchemaType>(token: InjectionToken<Instance, Schema>, args?: z.input<Schema>): string;
|
|
404
|
-
getInstanceIdentifier<Instance>(token: InjectionToken<Instance, undefined>): string;
|
|
405
|
-
getInstanceIdentifier<Instance>(token: BoundInjectionToken<Instance, any>): string;
|
|
406
|
-
getInstanceIdentifier<Instance>(token: FactoryInjectionToken<Instance, any>): string;
|
|
407
|
-
getInstance<Instance, Schema extends BaseInjectionTokenSchemaType>(token: InjectionToken<Instance, Schema>, args: z.input<Schema>): Promise<[undefined, Instance] | [UnknownError | FactoryNotFound]>;
|
|
408
|
-
getInstance<Instance, Schema extends OptionalInjectionTokenSchemaType>(token: InjectionToken<Instance, Schema>, args?: z.input<Schema>): Promise<[undefined, Instance] | [UnknownError | FactoryNotFound]>;
|
|
409
|
-
getInstance<Instance>(token: InjectionToken<Instance, undefined>): Promise<[undefined, Instance] | [UnknownError | FactoryNotFound]>;
|
|
410
|
-
getInstance<Instance>(token: BoundInjectionToken<Instance, any>): Promise<[undefined, Instance] | [UnknownError | FactoryNotFound]>;
|
|
411
|
-
getInstance<Instance>(token: FactoryInjectionToken<Instance, any>): Promise<[undefined, Instance] | [UnknownError | FactoryNotFound]>;
|
|
412
|
-
getOrThrowInstance<Instance, Schema extends InjectionTokenSchemaType | undefined>(token: InjectionToken<Instance, Schema>, args: Schema extends AnyZodObject ? z.input<Schema> : Schema extends ZodOptional<AnyZodObject> ? z.input<Schema> | undefined : undefined): Promise<Instance>;
|
|
413
|
-
private notifyListeners;
|
|
414
|
-
private createInstance;
|
|
415
|
-
private resolveInstance;
|
|
416
|
-
private createFactoryContext;
|
|
417
|
-
getSyncInstance<Instance, Schema extends InjectionTokenSchemaType | undefined>(token: InjectionToken<Instance, Schema>, args: Schema extends AnyZodObject ? z.input<Schema> : Schema extends ZodOptional<AnyZodObject> ? z.input<Schema> | undefined : undefined): Instance | null;
|
|
418
|
-
invalidate(service: string, round?: number): Promise<any>;
|
|
419
|
-
ready(): Promise<null>;
|
|
420
|
-
makeInstanceName(token: InjectionToken<any, any> | BoundInjectionToken<any, any> | FactoryInjectionToken<any, any>, args: any): string;
|
|
421
|
-
}
|
|
422
|
-
export { ServiceLocator }
|
|
423
|
-
export { ServiceLocator as ServiceLocator_alias_1 }
|
|
424
|
-
|
|
425
|
-
declare class ServiceLocatorEventBus {
|
|
426
|
-
private readonly logger;
|
|
427
|
-
private listeners;
|
|
428
|
-
constructor(logger?: Console | null);
|
|
429
|
-
on<Event extends string | `pre:${string}` | `post:${string}`>(ns: string, event: Event, listener: (event: Event) => void): () => void;
|
|
430
|
-
emit(key: string, event: string): Promise<PromiseSettledResult<any>[] | undefined>;
|
|
431
|
-
}
|
|
432
|
-
export { ServiceLocatorEventBus }
|
|
433
|
-
export { ServiceLocatorEventBus as ServiceLocatorEventBus_alias_1 }
|
|
434
|
-
|
|
435
|
-
declare type ServiceLocatorInstanceDestroyListener = () => void | Promise<void>;
|
|
436
|
-
export { ServiceLocatorInstanceDestroyListener }
|
|
437
|
-
export { ServiceLocatorInstanceDestroyListener as ServiceLocatorInstanceDestroyListener_alias_1 }
|
|
438
|
-
|
|
439
|
-
declare type ServiceLocatorInstanceEffect = () => void;
|
|
440
|
-
export { ServiceLocatorInstanceEffect }
|
|
441
|
-
export { ServiceLocatorInstanceEffect as ServiceLocatorInstanceEffect_alias_1 }
|
|
442
|
-
|
|
443
|
-
declare type ServiceLocatorInstanceHolder<Instance = unknown> = ServiceLocatorInstanceHolderCreating<Instance> | ServiceLocatorInstanceHolderCreated<Instance> | ServiceLocatorInstanceHolderDestroying<Instance>;
|
|
444
|
-
export { ServiceLocatorInstanceHolder }
|
|
445
|
-
export { ServiceLocatorInstanceHolder as ServiceLocatorInstanceHolder_alias_1 }
|
|
446
|
-
|
|
447
|
-
declare interface ServiceLocatorInstanceHolderCreated<Instance> {
|
|
448
|
-
status: ServiceLocatorInstanceHolderStatus.Created;
|
|
449
|
-
name: string;
|
|
450
|
-
instance: Instance;
|
|
451
|
-
creationPromise: null;
|
|
452
|
-
destroyPromise: null;
|
|
453
|
-
kind: ServiceLocatorInstanceHolderKind;
|
|
454
|
-
effects: ServiceLocatorInstanceEffect[];
|
|
455
|
-
deps: string[];
|
|
456
|
-
destroyListeners: ServiceLocatorInstanceDestroyListener[];
|
|
457
|
-
createdAt: number;
|
|
458
|
-
ttl: number;
|
|
459
|
-
}
|
|
460
|
-
export { ServiceLocatorInstanceHolderCreated }
|
|
461
|
-
export { ServiceLocatorInstanceHolderCreated as ServiceLocatorInstanceHolderCreated_alias_1 }
|
|
462
|
-
|
|
463
|
-
declare interface ServiceLocatorInstanceHolderCreating<Instance> {
|
|
464
|
-
status: ServiceLocatorInstanceHolderStatus.Creating;
|
|
465
|
-
name: string;
|
|
466
|
-
instance: null;
|
|
467
|
-
creationPromise: Promise<[undefined, Instance]> | null;
|
|
468
|
-
destroyPromise: null;
|
|
469
|
-
kind: ServiceLocatorInstanceHolderKind;
|
|
470
|
-
effects: ServiceLocatorInstanceEffect[];
|
|
471
|
-
deps: string[];
|
|
472
|
-
destroyListeners: ServiceLocatorInstanceDestroyListener[];
|
|
473
|
-
createdAt: number;
|
|
474
|
-
ttl: number;
|
|
475
|
-
}
|
|
476
|
-
export { ServiceLocatorInstanceHolderCreating }
|
|
477
|
-
export { ServiceLocatorInstanceHolderCreating as ServiceLocatorInstanceHolderCreating_alias_1 }
|
|
478
|
-
|
|
479
|
-
declare interface ServiceLocatorInstanceHolderDestroying<Instance> {
|
|
480
|
-
status: ServiceLocatorInstanceHolderStatus.Destroying;
|
|
481
|
-
name: string;
|
|
482
|
-
instance: Instance | null;
|
|
483
|
-
creationPromise: null;
|
|
484
|
-
destroyPromise: Promise<void>;
|
|
485
|
-
kind: ServiceLocatorInstanceHolderKind;
|
|
486
|
-
effects: ServiceLocatorInstanceEffect[];
|
|
487
|
-
deps: string[];
|
|
488
|
-
destroyListeners: ServiceLocatorInstanceDestroyListener[];
|
|
489
|
-
createdAt: number;
|
|
490
|
-
ttl: number;
|
|
491
|
-
}
|
|
492
|
-
export { ServiceLocatorInstanceHolderDestroying }
|
|
493
|
-
export { ServiceLocatorInstanceHolderDestroying as ServiceLocatorInstanceHolderDestroying_alias_1 }
|
|
494
|
-
|
|
495
|
-
declare enum ServiceLocatorInstanceHolderKind {
|
|
496
|
-
Instance = "instance",
|
|
497
|
-
Factory = "factory",
|
|
498
|
-
AbstractFactory = "abstractFactory"
|
|
499
|
-
}
|
|
500
|
-
export { ServiceLocatorInstanceHolderKind }
|
|
501
|
-
export { ServiceLocatorInstanceHolderKind as ServiceLocatorInstanceHolderKind_alias_1 }
|
|
502
|
-
|
|
503
|
-
declare enum ServiceLocatorInstanceHolderStatus {
|
|
504
|
-
Created = "created",
|
|
505
|
-
Creating = "creating",
|
|
506
|
-
Destroying = "destroying"
|
|
507
|
-
}
|
|
508
|
-
export { ServiceLocatorInstanceHolderStatus }
|
|
509
|
-
export { ServiceLocatorInstanceHolderStatus as ServiceLocatorInstanceHolderStatus_alias_1 }
|
|
510
|
-
|
|
511
|
-
declare class ServiceLocatorManager {
|
|
512
|
-
private readonly logger;
|
|
513
|
-
private readonly instancesHolders;
|
|
514
|
-
constructor(logger?: Console | null);
|
|
515
|
-
get(name: string): [InstanceExpired | InstanceDestroying, ServiceLocatorInstanceHolder] | [InstanceNotFound] | [undefined, ServiceLocatorInstanceHolder];
|
|
516
|
-
set(name: string, holder: ServiceLocatorInstanceHolder): void;
|
|
517
|
-
has(name: string): [InstanceExpired | InstanceDestroying] | [undefined, boolean];
|
|
518
|
-
delete(name: string): boolean;
|
|
519
|
-
filter(predicate: (value: ServiceLocatorInstanceHolder<any>, key: string) => boolean): Map<string, ServiceLocatorInstanceHolder>;
|
|
520
|
-
}
|
|
521
|
-
export { ServiceLocatorManager }
|
|
522
|
-
export { ServiceLocatorManager as ServiceLocatorManager_alias_1 }
|
|
523
|
-
|
|
524
|
-
declare const syncInject: Injectors['syncInject'];
|
|
525
|
-
export { syncInject }
|
|
526
|
-
export { syncInject as syncInject_alias_1 }
|
|
527
|
-
|
|
528
|
-
declare class UnknownError extends Error {
|
|
529
|
-
code: ErrorsEnum;
|
|
530
|
-
parent?: Error;
|
|
531
|
-
constructor(message: string | Error);
|
|
532
|
-
}
|
|
533
|
-
export { UnknownError }
|
|
534
|
-
export { UnknownError as UnknownError_alias_1 }
|
|
535
|
-
export { UnknownError as UnknownError_alias_2 }
|
|
536
|
-
|
|
537
|
-
declare const wrapSyncInit: Injectors['wrapSyncInit'];
|
|
538
|
-
export { wrapSyncInit }
|
|
539
|
-
export { wrapSyncInit as wrapSyncInit_alias_1 }
|
|
540
|
-
|
|
541
|
-
export { }
|
package/dist/index.d.mts
DELETED
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
export { Injectable } from './_tsup-dts-rollup.mjs';
|
|
2
|
-
export { InjectableOptions } from './_tsup-dts-rollup.mjs';
|
|
3
|
-
export { InjectableScope } from './_tsup-dts-rollup.mjs';
|
|
4
|
-
export { InjectableType } from './_tsup-dts-rollup.mjs';
|
|
5
|
-
export { ErrorsEnum } from './_tsup-dts-rollup.mjs';
|
|
6
|
-
export { FactoryNotFound } from './_tsup-dts-rollup.mjs';
|
|
7
|
-
export { FactoryTokenNotResolved } from './_tsup-dts-rollup.mjs';
|
|
8
|
-
export { InstanceDestroying } from './_tsup-dts-rollup.mjs';
|
|
9
|
-
export { InstanceExpired } from './_tsup-dts-rollup.mjs';
|
|
10
|
-
export { InstanceNotFound } from './_tsup-dts-rollup.mjs';
|
|
11
|
-
export { UnknownError } from './_tsup-dts-rollup.mjs';
|
|
12
|
-
export { Factory } from './_tsup-dts-rollup.mjs';
|
|
13
|
-
export { FactoryWithArgs } from './_tsup-dts-rollup.mjs';
|
|
14
|
-
export { getInjectors } from './_tsup-dts-rollup.mjs';
|
|
15
|
-
export { CreateInjectorsOptions } from './_tsup-dts-rollup.mjs';
|
|
16
|
-
export { Injectors } from './_tsup-dts-rollup.mjs';
|
|
17
|
-
export { InjectorsBase } from './_tsup-dts-rollup.mjs';
|
|
18
|
-
export { getInjectableToken } from './_tsup-dts-rollup.mjs';
|
|
19
|
-
export { EventsConfig_alias_1 as EventsConfig } from './_tsup-dts-rollup.mjs';
|
|
20
|
-
export { EventsNames_alias_1 as EventsNames } from './_tsup-dts-rollup.mjs';
|
|
21
|
-
export { EventsArgs_alias_1 as EventsArgs } from './_tsup-dts-rollup.mjs';
|
|
22
|
-
export { ChannelEmitter_alias_1 as ChannelEmitter } from './_tsup-dts-rollup.mjs';
|
|
23
|
-
export { EventEmitterInterface_alias_1 as EventEmitterInterface } from './_tsup-dts-rollup.mjs';
|
|
24
|
-
export { EventEmitter_alias_1 as EventEmitter } from './_tsup-dts-rollup.mjs';
|
|
25
|
-
export { FactoryContext_alias_1 as FactoryContext } from './_tsup-dts-rollup.mjs';
|
|
26
|
-
export { ClassType } from './_tsup-dts-rollup.mjs';
|
|
27
|
-
export { ClassTypeWithArgument } from './_tsup-dts-rollup.mjs';
|
|
28
|
-
export { ClassTypeWithInstance } from './_tsup-dts-rollup.mjs';
|
|
29
|
-
export { ClassTypeWithInstanceAndArgument } from './_tsup-dts-rollup.mjs';
|
|
30
|
-
export { BaseInjectionTokenSchemaType } from './_tsup-dts-rollup.mjs';
|
|
31
|
-
export { OptionalInjectionTokenSchemaType } from './_tsup-dts-rollup.mjs';
|
|
32
|
-
export { InjectionTokenSchemaType } from './_tsup-dts-rollup.mjs';
|
|
33
|
-
export { InjectionToken } from './_tsup-dts-rollup.mjs';
|
|
34
|
-
export { BoundInjectionToken } from './_tsup-dts-rollup.mjs';
|
|
35
|
-
export { FactoryInjectionToken } from './_tsup-dts-rollup.mjs';
|
|
36
|
-
export { getGlobalServiceLocator } from './_tsup-dts-rollup.mjs';
|
|
37
|
-
export { inject } from './_tsup-dts-rollup.mjs';
|
|
38
|
-
export { syncInject } from './_tsup-dts-rollup.mjs';
|
|
39
|
-
export { wrapSyncInit } from './_tsup-dts-rollup.mjs';
|
|
40
|
-
export { provideServiceLocator } from './_tsup-dts-rollup.mjs';
|
|
41
|
-
export { makeProxyServiceLocator } from './_tsup-dts-rollup.mjs';
|
|
42
|
-
export { ProxyServiceLocator } from './_tsup-dts-rollup.mjs';
|
|
43
|
-
export { InjectionFactory } from './_tsup-dts-rollup.mjs';
|
|
44
|
-
export { FactoryRecord } from './_tsup-dts-rollup.mjs';
|
|
45
|
-
export { Registry } from './_tsup-dts-rollup.mjs';
|
|
46
|
-
export { globalRegistry } from './_tsup-dts-rollup.mjs';
|
|
47
|
-
export { resolveService } from './_tsup-dts-rollup.mjs';
|
|
48
|
-
export { ServiceLocator } from './_tsup-dts-rollup.mjs';
|
|
49
|
-
export { ServiceLocatorEventBus } from './_tsup-dts-rollup.mjs';
|
|
50
|
-
export { ServiceLocatorInstanceHolderKind } from './_tsup-dts-rollup.mjs';
|
|
51
|
-
export { ServiceLocatorInstanceHolderStatus } from './_tsup-dts-rollup.mjs';
|
|
52
|
-
export { ServiceLocatorInstanceEffect } from './_tsup-dts-rollup.mjs';
|
|
53
|
-
export { ServiceLocatorInstanceDestroyListener } from './_tsup-dts-rollup.mjs';
|
|
54
|
-
export { ServiceLocatorInstanceHolderCreating } from './_tsup-dts-rollup.mjs';
|
|
55
|
-
export { ServiceLocatorInstanceHolderCreated } from './_tsup-dts-rollup.mjs';
|
|
56
|
-
export { ServiceLocatorInstanceHolderDestroying } from './_tsup-dts-rollup.mjs';
|
|
57
|
-
export { ServiceLocatorInstanceHolder } from './_tsup-dts-rollup.mjs';
|
|
58
|
-
export { ServiceLocatorManager } from './_tsup-dts-rollup.mjs';
|
|
59
|
-
export { InjectableTokenMeta } from './_tsup-dts-rollup.mjs';
|
package/dist/index.d.ts
DELETED
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
export { Injectable } from './_tsup-dts-rollup.js';
|
|
2
|
-
export { InjectableOptions } from './_tsup-dts-rollup.js';
|
|
3
|
-
export { InjectableScope } from './_tsup-dts-rollup.js';
|
|
4
|
-
export { InjectableType } from './_tsup-dts-rollup.js';
|
|
5
|
-
export { ErrorsEnum } from './_tsup-dts-rollup.js';
|
|
6
|
-
export { FactoryNotFound } from './_tsup-dts-rollup.js';
|
|
7
|
-
export { FactoryTokenNotResolved } from './_tsup-dts-rollup.js';
|
|
8
|
-
export { InstanceDestroying } from './_tsup-dts-rollup.js';
|
|
9
|
-
export { InstanceExpired } from './_tsup-dts-rollup.js';
|
|
10
|
-
export { InstanceNotFound } from './_tsup-dts-rollup.js';
|
|
11
|
-
export { UnknownError } from './_tsup-dts-rollup.js';
|
|
12
|
-
export { Factory } from './_tsup-dts-rollup.js';
|
|
13
|
-
export { FactoryWithArgs } from './_tsup-dts-rollup.js';
|
|
14
|
-
export { getInjectors } from './_tsup-dts-rollup.js';
|
|
15
|
-
export { CreateInjectorsOptions } from './_tsup-dts-rollup.js';
|
|
16
|
-
export { Injectors } from './_tsup-dts-rollup.js';
|
|
17
|
-
export { InjectorsBase } from './_tsup-dts-rollup.js';
|
|
18
|
-
export { getInjectableToken } from './_tsup-dts-rollup.js';
|
|
19
|
-
export { EventsConfig_alias_1 as EventsConfig } from './_tsup-dts-rollup.js';
|
|
20
|
-
export { EventsNames_alias_1 as EventsNames } from './_tsup-dts-rollup.js';
|
|
21
|
-
export { EventsArgs_alias_1 as EventsArgs } from './_tsup-dts-rollup.js';
|
|
22
|
-
export { ChannelEmitter_alias_1 as ChannelEmitter } from './_tsup-dts-rollup.js';
|
|
23
|
-
export { EventEmitterInterface_alias_1 as EventEmitterInterface } from './_tsup-dts-rollup.js';
|
|
24
|
-
export { EventEmitter_alias_1 as EventEmitter } from './_tsup-dts-rollup.js';
|
|
25
|
-
export { FactoryContext_alias_1 as FactoryContext } from './_tsup-dts-rollup.js';
|
|
26
|
-
export { ClassType } from './_tsup-dts-rollup.js';
|
|
27
|
-
export { ClassTypeWithArgument } from './_tsup-dts-rollup.js';
|
|
28
|
-
export { ClassTypeWithInstance } from './_tsup-dts-rollup.js';
|
|
29
|
-
export { ClassTypeWithInstanceAndArgument } from './_tsup-dts-rollup.js';
|
|
30
|
-
export { BaseInjectionTokenSchemaType } from './_tsup-dts-rollup.js';
|
|
31
|
-
export { OptionalInjectionTokenSchemaType } from './_tsup-dts-rollup.js';
|
|
32
|
-
export { InjectionTokenSchemaType } from './_tsup-dts-rollup.js';
|
|
33
|
-
export { InjectionToken } from './_tsup-dts-rollup.js';
|
|
34
|
-
export { BoundInjectionToken } from './_tsup-dts-rollup.js';
|
|
35
|
-
export { FactoryInjectionToken } from './_tsup-dts-rollup.js';
|
|
36
|
-
export { getGlobalServiceLocator } from './_tsup-dts-rollup.js';
|
|
37
|
-
export { inject } from './_tsup-dts-rollup.js';
|
|
38
|
-
export { syncInject } from './_tsup-dts-rollup.js';
|
|
39
|
-
export { wrapSyncInit } from './_tsup-dts-rollup.js';
|
|
40
|
-
export { provideServiceLocator } from './_tsup-dts-rollup.js';
|
|
41
|
-
export { makeProxyServiceLocator } from './_tsup-dts-rollup.js';
|
|
42
|
-
export { ProxyServiceLocator } from './_tsup-dts-rollup.js';
|
|
43
|
-
export { InjectionFactory } from './_tsup-dts-rollup.js';
|
|
44
|
-
export { FactoryRecord } from './_tsup-dts-rollup.js';
|
|
45
|
-
export { Registry } from './_tsup-dts-rollup.js';
|
|
46
|
-
export { globalRegistry } from './_tsup-dts-rollup.js';
|
|
47
|
-
export { resolveService } from './_tsup-dts-rollup.js';
|
|
48
|
-
export { ServiceLocator } from './_tsup-dts-rollup.js';
|
|
49
|
-
export { ServiceLocatorEventBus } from './_tsup-dts-rollup.js';
|
|
50
|
-
export { ServiceLocatorInstanceHolderKind } from './_tsup-dts-rollup.js';
|
|
51
|
-
export { ServiceLocatorInstanceHolderStatus } from './_tsup-dts-rollup.js';
|
|
52
|
-
export { ServiceLocatorInstanceEffect } from './_tsup-dts-rollup.js';
|
|
53
|
-
export { ServiceLocatorInstanceDestroyListener } from './_tsup-dts-rollup.js';
|
|
54
|
-
export { ServiceLocatorInstanceHolderCreating } from './_tsup-dts-rollup.js';
|
|
55
|
-
export { ServiceLocatorInstanceHolderCreated } from './_tsup-dts-rollup.js';
|
|
56
|
-
export { ServiceLocatorInstanceHolderDestroying } from './_tsup-dts-rollup.js';
|
|
57
|
-
export { ServiceLocatorInstanceHolder } from './_tsup-dts-rollup.js';
|
|
58
|
-
export { ServiceLocatorManager } from './_tsup-dts-rollup.js';
|
|
59
|
-
export { InjectableTokenMeta } from './_tsup-dts-rollup.js';
|