Skip to content
New issue

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

Ben/type #20

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Ben/type #20

wants to merge 4 commits into from

Conversation

blugavere
Copy link
Contributor

No description provided.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.4%) to 97.233% when pulling 8be4f9a on ben/type into cdfa7d0 on master.

@@ -305,7 +305,30 @@ export class Injector {
* Overloads allow arrays or maps to be returned.
* @param name - Dependency
*/
public get = (dependencies: IDependencies) => {
public get<K extends keyof T>(dependencies: K): T[K];

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe add a reference to the issue in the typescript repo so that we can track if it's been fixed or not easier?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

E.g microsoft/TypeScript#15972
Dunno if we should be tracking others

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants