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

Prevent circular typedef validations #43

Closed kungfooman closed 10 months ago

kungfooman commented 10 months ago

When a typedef is not resolved, it is only a string - which is then resolved as typedef to a string again - and again.

We have to ensure that every @typedef is fully resolved:

1) either from the source code withing 2) or any of it's dependencies (inside a type declaration file)

Otherwise: print a useful/informative warning.