Skip to content

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

@miello

Description

@miello

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,
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions