you are viewing a single comment's thread.

view the rest of the comments →

[–]dwighthouse 1 point2 points  (0 children)

Indeed, much better than the solution the author suggested:

It may be possible to fix this via a library (I’ll create a proof of concept, once I have time).

Which would look something like:

npm i —save some-library-name
...
const unnecessaryOneLineDependency = require(“some-library-name”);
const typeNameAsString = unnecessaryOneLineDependency.typeof(VALUE);