kungfooman / RuntimeTypeInspector.js

Checking JSDoc types at runtime for high-quality types - Trust is good, control is better.
MIT License
8 stars 0 forks source link

Refactor validateType #98

Closed kungfooman closed 7 months ago

kungfooman commented 7 months ago

Fixes: #68

Example:

image

What I want to see here is simply: Entity#constructor> customValidation failed: x is NaN

kungfooman commented 7 months ago

Coming a bit closer to the goal with the commit before this comment:

image

(now I just need to repeat this pattern, I'm very happy so far with it)

kungfooman commented 7 months ago

This PR became a bit bigger and bumps Major semver version, but it feels so much cleaner and easier to understand now :rainbow: :+1: :1st_place_medal: