Skip to content
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

Better error handling #129

Open
prevwong opened this issue Dec 25, 2023 · 0 comments
Open

Better error handling #129

prevwong opened this issue Dec 25, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@prevwong
Copy link
Owner

Create an invalid Type throws an error that's difficult to read/debug:

import * as t from '@rekajs/types';

t.binaryExpression({
  left: t.componentTemplate(...), // invalid, throws an error that's difficult to read
  operator: '+',
  right: t.literal({ value: 0 }),
});
@prevwong prevwong self-assigned this Dec 25, 2023
@prevwong prevwong added the enhancement New feature or request label Jan 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Done
Development

No branches or pull requests

1 participant