graphql-modules 2.3.0-alpha-20231103075354-b583a894 → 2.4.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/README.md +4 -1
- package/di/injector.d.ts +2 -2
- package/di/providers.d.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
[](https://graphql.org/conf/2024/?utm_source=github&utm_medium=graphql_modules&utm_campaign=readme)
|
|
2
|
+
|
|
3
|
+
<!-- Uncomment when we remove GraphQL Conf banner -->
|
|
4
|
+
<!-- [](https://graphql-modules.com/) -->
|
|
2
5
|
|
|
3
6
|
[](https://www.npmjs.com/package/graphql-modules)
|
|
4
7
|

|
package/di/injector.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Type, InjectionToken, Provider } from './providers';
|
|
1
|
+
import { Type, InjectionToken, Provider, AbstractType } from './providers';
|
|
2
2
|
import { ResolvedProvider, GlobalProviderMap } from './resolution';
|
|
3
3
|
import { Key } from './registry';
|
|
4
4
|
import { ExecutionContext } from './decorators';
|
|
5
5
|
type ExecutionContextGetter = () => ExecutionContext | never;
|
|
6
6
|
export declare abstract class Injector {
|
|
7
|
-
abstract get<T>(token: Type<T> | InjectionToken<T>, notFoundValue?: any): T;
|
|
7
|
+
abstract get<T>(token: Type<T> | InjectionToken<T> | AbstractType<T>, notFoundValue?: any): T;
|
|
8
8
|
}
|
|
9
9
|
export declare class ReflectiveInjector implements Injector {
|
|
10
10
|
displayName: string;
|
package/di/providers.d.ts
CHANGED
|
@@ -24,7 +24,7 @@ export interface FactoryProvider<T> extends BaseProvider<T> {
|
|
|
24
24
|
deps?: any[];
|
|
25
25
|
}
|
|
26
26
|
export interface BaseProvider<T> extends ProviderOptions {
|
|
27
|
-
provide: Type<T> | InjectionToken<T>;
|
|
27
|
+
provide: Type<T> | InjectionToken<T> | AbstractType<T>;
|
|
28
28
|
}
|
|
29
29
|
export interface TypeProvider<T> extends Type<T> {
|
|
30
30
|
}
|
package/package.json
CHANGED