reka.js icon indicating copy to clipboard operation
reka.js copied to clipboard

Better error handling

Open prevwong opened this issue 6 months ago • 0 comments

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 avatar Dec 25 '23 16:12 prevwong