Hi there! While wanting to migrate to the new split parser/builder packages, I've noticed inconsistency in the type definitions.
This makes it impossible to import correctly - named import type-checks but crashes at runtime, default import works at runtime but fails type-checking.
The fix would be to choose either named or default export and use in both places. Happy to submit a PR for whichever direction you prefer.
Hi there! While wanting to migrate to the new split parser/builder packages, I've noticed inconsistency in the type definitions.
This makes it impossible to import correctly - named import type-checks but crashes at runtime, default import works at runtime but fails type-checking.
The fix would be to choose either named or default export and use in both places. Happy to submit a PR for whichever direction you prefer.