Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Dependency has not been not injected when using InstanceType as a type #16

Open
miello opened this issue Jan 23, 2024 · 0 comments
Open

Comments

@miello
Copy link

miello commented Jan 23, 2024

Description

When we use InstanceType<typeof X> with factory, it looks like that this dependency has not been injected to required class

Minimal reproducible example

https://github.com/miello/poc-issue-what-the-dep/tree/not-inject-dependency

Logs

register 600928c8 GithubClient
register 5e771ee2 ProbotOctokitType
register 8cb42dca ProbotApp
undefined
GithubClient {
  octokit: undefined,
}
@miello miello changed the title Dependency is not injected when using InstanceType as a type Dependency has not been not injected when using InstanceType as a type Jan 23, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant