We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e454a1d commit df7e2dbCopy full SHA for df7e2db
.changeset/lazy-bulldogs-cry.md
@@ -0,0 +1,5 @@
1
+---
2
+'graphql-modules': patch
3
4
+
5
+TypeScript 5 support for the Inject and Optional decorators
packages/graphql-modules/src/di/decorators.ts
@@ -51,6 +51,13 @@ export function Injectable(options?: ProviderOptions): ClassDecorator {
51
};
52
}
53
54
+// https://github.com/microsoft/TypeScript/issues/52435
55
+type ParameterDecorator = (
56
+ target: Object,
57
+ propertyKey: string | symbol | undefined,
58
+ parameterIndex: number
59
+) => void;
60
61
export function Optional(): ParameterDecorator {
62
return (target, _, index) => {
63
ensureReflect();
0 commit comments