reka.js
reka.js copied to clipboard
Better error handling
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 }),
});