-
-
Save nicojs/586b057ac2789c07d7c79ae6a3936e3e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Injector { | |
injectClass<Tokens extends (keyof Context)[]>(Injectable: Injectable<Tokens, R>): R { | |
const args = /* resolve inject tokens */; | |
return new Injectable(...args); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment