You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My goal is to have the types in the .js files be both legal jsdoc types as well as correct typescript types. I don't think that's possible here because jsdoc doesn't support tuples (see jsdoc/jsdoc#1703).
My work-around was to use a simple Array in jsdoc, and hand-edit the .ts file with the proper tuple type.
Overview
I am trying to use version 2.0.0 and I am getting a Typescript error when I try to build my project. The error is as follows:
I get this error using both typescript
4.3.x
and4.4.x
.Fix
I think the fix is to make the Array take an implicit object of Buffer and string in the
wsd.d.ts
file.I believe this resolves the issue:
The text was updated successfully, but these errors were encountered: