-
Notifications
You must be signed in to change notification settings - Fork 17
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
MockFunction
return type may be generic
#169
Comments
cc: @jsejcksn |
is the issue that, the new typescript types file is forcing you to define |
No. It's enhansment. Currently Actually, I just realise, that user can set type just like: 🤦🏻♂️ const myModule: typeof import('/module/path') = await esmock('/module/path') So, I close this as no actual, until microsoft/TypeScript#31090 was resolved |
@cawa-93 thanks for sharing that is great |
esmock/src/esmock.d.ts
Line 9 in 28cbda5
It allows you type mocked module like so:
The text was updated successfully, but these errors were encountered: