-
Notifications
You must be signed in to change notification settings - Fork 53
Generated Typescript types fail to compile, are missing some generic arguments #48
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
Comments
@andymatuschak thanks for reporting this. It appears that is caused by a bug in typescript's type declaration generation code microsoft/TypeScript#41258, it seems to loose type parameters for jsdoc js-multiformats/src/codecs/codec.js Lines 74 to 81 in f842880
@andymatuschak do you still observe compliation with If |
@Gozala Nice work reducing the TypeScript issue—looks like they plan to fix it in 4.2.0, so hopefully this won't be an issue long. Indeed, setting Should we put a note about this gotcha and its workaround in the Readme until the issue's fixed? Happy to submit a PR for that if it's welcome; if not, let's just close and move on. |
That would be amazing thanks! |
Hi, all. The generated .d.ts files are missing some generic arguments, making builds fail when using these type definitions. For instance, in
base.d.ts
:MultibaseDecoder
andCombobaseDecoder
both require aPrefix
generic type argument, but none is supplied.This is the full set of errors I encountered, but it may not be exhaustive, since I'm not importing all submodules:
The text was updated successfully, but these errors were encountered: