We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Basically this except the imports are not present in the scope of the injection token.
I expect the code to compile.
my-type.ts
export type MyType<T extends MyInterface = MyInterface> = () => T
my-token.ts
export const MyToken = new InjectionToken<MyType>('MyToken ')
my-token.ts will fail to compile unless MyInterface is imported (not even used) in my-token.ts.
MyInterface
I want to type injection tokens with default type params.
Daffodil version: 0.37.0 Angular version: 10
A workaround exists so this isn't critical but it is rather annoying.
The text was updated successfully, but these errors were encountered:
eslint-plugin-unused-imports
griest024
No branches or pull requests
🐛 Bug report
Current Behavior
Basically this except the imports are not present in the scope of the injection token.
Expected Behavior
I expect the code to compile.
Minimal reproduction of the problem with instructions
my-type.ts
my-token.ts
my-token.ts
will fail to compile unlessMyInterface
is imported (not even used) inmy-token.ts
.What is the motivation / use case for changing the behavior?
I want to type injection tokens with default type params.
Environment
Other
A workaround exists so this isn't critical but it is rather annoying.
The text was updated successfully, but these errors were encountered: