-
Notifications
You must be signed in to change notification settings - Fork 118
Closed
Description
Describe the bug
Typescript 5 has tighter parameter decorator checking with --experimentalDecorators.
That means constructor parameter decorators should allow undefined as the type of key.
To Reproduce
Use the Inject
decorator with Typescript 5+:
error TS1239: Unable to resolve signature of parameter decorator when called as an expression.
Argument of type 'undefined' is not assignable to parameter of type 'string | symbol'.
50 @Inject(Pool) pool: DatabasePool,
~~~~~~~~~~~~
Expected behavior
Works with TS5+.
Environment:
- OS: Gentoo Linux ppc64le
graphql-modules
: 2.1.1- NodeJS: v18.15.0
Additional context
Metadata
Metadata
Assignees
Labels
No labels