You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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+:Expected behavior
Works with TS5+.
Environment:
graphql-modules
: 2.1.1Additional context
The text was updated successfully, but these errors were encountered: