Rename assertType into either validateType or isType #68
Labels
code generation
Everything related to code generation
type error reporting
Everything related to type error reporting in UI
Milestone
This may cause a somewhat bigger refactor, because I'm no longer happy about the name "assertType" - IMO it should be called either
validateType
or - even shorter -isType
- "assert" implies it will throw on wrong types, but it doesn't.And then I'm also contemplating to rename the validate*-functions into assert*-functions and actually make them throw type errors, so we can merge certain types into one longer type error string.
I specifically think about: customValidations-for-entity.mjs
Example:
What I want to see here is simply:
Entity#constructor> customValidation failed: x is NaN
The text was updated successfully, but these errors were encountered: