@tstdl/base 0.86.0-beta4 → 0.86.0-beta6
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/injector/injector.d.ts +4 -4
- package/package.json +1 -1
- /package/{__container → container}/decorators.d.ts +0 -0
- /package/{__container → container}/decorators.js +0 -0
- /package/{__container → container}/index.d.ts +0 -0
- /package/{__container → container}/index.js +0 -0
- /package/{__container → container}/interfaces.d.ts +0 -0
- /package/{__container → container}/interfaces.js +0 -0
- /package/{__container → container}/token.d.ts +0 -0
- /package/{__container → container}/token.js +0 -0
package/injector/injector.d.ts
CHANGED
|
@@ -27,14 +27,14 @@ export declare class Injector implements AsyncDisposable {
|
|
|
27
27
|
* @param provider provider used to resolve the token
|
|
28
28
|
* @param options registration options
|
|
29
29
|
*/
|
|
30
|
-
static register<T, A = any, C extends Record = Record>(token: InjectionToken<T, A>, providers: OneOrMany<Provider<T, A, C>>, options?: RegistrationOptions<T, A>): void;
|
|
30
|
+
static register<T, A = any, C extends Record = Record>(token: InjectionToken<T, A>, providers: OneOrMany<Provider<T, A, C>>, options?: RegistrationOptions<T, A, C>): void;
|
|
31
31
|
/**
|
|
32
32
|
* Globally register a provider for a token as a singleton. Alias for {@link register} with `singleton` lifecycle
|
|
33
33
|
* @param token token to register
|
|
34
34
|
* @param provider provider used to resolve the token
|
|
35
35
|
* @param options registration options
|
|
36
36
|
*/
|
|
37
|
-
static registerSingleton<T, A = any, C extends Record = Record>(token: InjectionToken<T, A>, providers: OneOrMany<Provider<T, A, C>>, options?: TypedOmit<RegistrationOptions<T, A>, 'lifecycle'>): void;
|
|
37
|
+
static registerSingleton<T, A = any, C extends Record = Record>(token: InjectionToken<T, A>, providers: OneOrMany<Provider<T, A, C>>, options?: TypedOmit<RegistrationOptions<T, A, C>, 'lifecycle'>): void;
|
|
38
38
|
dispose(): Promise<void>;
|
|
39
39
|
[disposeAsync](): Promise<void>;
|
|
40
40
|
fork(name: string): Injector;
|
|
@@ -44,14 +44,14 @@ export declare class Injector implements AsyncDisposable {
|
|
|
44
44
|
* @param provider provider used to resolve the token
|
|
45
45
|
* @param options registration options
|
|
46
46
|
*/
|
|
47
|
-
register<T, A = any, C extends Record = Record>(token: InjectionToken<T, A>, providers: OneOrMany<Provider<T, A, C>>, options?: RegistrationOptions<T, A>): void;
|
|
47
|
+
register<T, A = any, C extends Record = Record>(token: InjectionToken<T, A>, providers: OneOrMany<Provider<T, A, C>>, options?: RegistrationOptions<T, A, C>): void;
|
|
48
48
|
/**
|
|
49
49
|
* Register a provider for a token as a singleton. Alias for {@link register} with `singleton` lifecycle
|
|
50
50
|
* @param token token to register
|
|
51
51
|
* @param provider provider used to resolve the token
|
|
52
52
|
* @param options registration options
|
|
53
53
|
*/
|
|
54
|
-
registerSingleton<T, A = any, C extends Record = Record>(token: InjectionToken<T, A>, providers: OneOrMany<Provider<T, A, C>>, options?: TypedOmit<RegistrationOptions<T, A>, 'lifecycle'>): void;
|
|
54
|
+
registerSingleton<T, A = any, C extends Record = Record>(token: InjectionToken<T, A>, providers: OneOrMany<Provider<T, A, C>>, options?: TypedOmit<RegistrationOptions<T, A, C>, 'lifecycle'>): void;
|
|
55
55
|
/**
|
|
56
56
|
* Check if token has a registered provider
|
|
57
57
|
* @param token token check
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|