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

Better ordering of `warn` arguments #123

Open kungfooman opened 6 months ago

kungfooman commented 6 months ago

Currently first the text information is logged and then all extra data objects... it would be better to keep them together.

One idea I have:

warn(() => ['text info..., {a, b, c}]);

Or simply rewriting the warn system a bit... so we will end up with a system where every call to warn is producing one nice row in a table like an easy to read stack trace with information where it belongs.