-
Notifications
You must be signed in to change notification settings - Fork 51
Make typings more specific #100
Copy link
Copy link
Open
Description
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
ExpressionInfointerface to a union type with the corresponding ids.
Should I make a PR or is this behaviour intentional?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels