Unable to inject classes with static properties
Closed this issue · 0 comments
mscharley commented
Describe the bug.
In at least experimental
decorators mode it is impossible to use @injectable()
on classes with static properties. The type system will reject the subclass that the decorator returns as not having implemented the static properties.
Steps to reproduce
@injectable()
class Foo {
public static bar: number;
}
Expected behaviour
No response
IOC-Deco
1.2.4
TypeScript
5.2.2
Decorator type
Typescript Experimental
Node
No response
Add any other context about the problem here.
No response