-
Notifications
You must be signed in to change notification settings - Fork 3
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
can't be used from TypeScript #4
Comments
I don't know what index.d.ts you are referring to. We auto-generate one via tsc, but we don't manually define one anywhere in this module. |
The last line of prepare.js overwrites the index.d.ts |
Ahhh, that makes sense. What's your tsconfig? I think we might be assuming you have es2016 enabled. I think we don't accept the default config since it made it difficult to pass a |
Yes, targeting es2015. I've created a local typing which says that LazyPromise just implements PromiseLike as that's enough for what I need. |
The index.d.ts provided has insufficient details - particularly no constructor.
The index.d.ts generated by tsc seems to be correct so there should be no need to override.
The text was updated successfully, but these errors were encountered: