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
Hello! Currently, binaryen.d.ts contains definitions that don't allow TypeScript compiler to properly narrow down ExpressionInfo. It would be nice to have more specific typings. I suggest the following changes:
Change type of Id exports to match the corresponding enum value.
Change the ExpressionInfo interface to a union type with the corresponding ids.
Should I make a PR or is this behaviour intentional?
The text was updated successfully, but these errors were encountered:
Hello! Currently,
binaryen.d.ts
contains definitions that don't allow TypeScript compiler to properly narrow downExpressionInfo
. It would be nice to have more specific typings. I suggest the following changes:ExpressionInfo
interface to a union type with the corresponding ids.Should I make a PR or is this behaviour intentional?
The text was updated successfully, but these errors were encountered: