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
awilix/src/container.ts
Line 45 in 7625dd9
If you create a scoped container without a generic type, the return type of the new container is any
any
interface Foo { foo: string } const container = createContainer<Foo>() // scoped has AwilixContainer<any> type const scoped = container.createScope()
I think the type should be:
createScope<T extends object = {}>(): AwilixContainer<Cradle & T>
The text was updated successfully, but these errors were encountered:
I'm ok with that. Feel free to submit a PR.
Sorry, something went wrong.
Will do tomorrow.
fix(container): createScope return defaults to original container
c0c7160
Closes jeffijoe#178
Successfully merging a pull request may close this issue.
awilix/src/container.ts
Line 45 in 7625dd9
If you create a scoped container without a generic type, the return type of the new container is
any
I think the type should be:
The text was updated successfully, but these errors were encountered: