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
When you're using a class as the type, you get the error: @typescript-eslint/no-use-before-define.
@typescript-eslint/no-use-before-define
I'd rather not disable this line. Any chance to make @provide() without any arguments passed in default to the class type?
@provide()
The text was updated successfully, but these errors were encountered:
#186
Sorry, something went wrong.
I encountered the error ReferenceError: Cannot access before initialization, and I really need this pull requests.
ReferenceError: Cannot access before initialization
If someone want to use this pull request without any modifying original source before merging, Use your own decorator like
import { interfaces } from 'inversify'; import { provide } from 'inversify-binding-decorators'; function provideAuto(serviceIdentifier?: interfaces.ServiceIdentifier<any>, force?: boolean) { return function (target: any) { const result = provide(serviceIdentifier || target, force)(target); return result; }; } export default provideAuto;
No branches or pull requests
When you're using a class as the type, you get the error:
@typescript-eslint/no-use-before-define
.I'd rather not disable this line. Any chance to make
@provide()
without any arguments passed in default to the class type?The text was updated successfully, but these errors were encountered: