node icon indicating copy to clipboard operation
node copied to clipboard

lib: improve hideStackFrames intellisense

Open anonrig opened this issue 1 year ago • 0 comments

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.

anonrig avatar Aug 08 '22 20:08 anonrig