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

Assign NodeModule to a type #20

Open
jackmellis opened this issue Apr 8, 2021 · 0 comments
Open

Assign NodeModule to a type #20

jackmellis opened this issue Apr 8, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@jackmellis
Copy link
Member

right now this will work:

jpex.resolve<NodeModule<'fs', typeof fs>>;

but this won't:

type Fs = NodeModule<'fs', typeof fs>;

jpex.resolve<Fs>();

As this is quite a verbose syntax, it'd be nice if you could assign it to another type first

@jackmellis jackmellis added the bug Something isn't working label Apr 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant