node
node copied to clipboard
lib: improve hideStackFrames intellisense
This is a draft pull request to improve the developer experience by fixing internal function's JSDoc declarations. I wanted to receive some feedback before investing time on this.
Previously, all functions that uses hideStackFrames was invalidly typed and was shown as a warning in IDEs (On WebStorm and Sublime).
I wanted to introduce T is boolean
kind of type guards into the functions but could not find a solution for functions that does not return any boolean, but throws an error.