Skip to content

lib: improve hideStackFrames intellisense#44181

Merged
aduh95 merged 11 commits intonodejs:mainfrom
anonrig:improve/jsdoc
Aug 17, 2022
Merged

lib: improve hideStackFrames intellisense#44181
aduh95 merged 11 commits intonodejs:mainfrom
anonrig:improve/jsdoc

Conversation

@anonrig
Copy link
Member

@anonrig anonrig commented Aug 8, 2022

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.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author ready PRs that have at least one approval, no pending requests for changes, and a CI started. errors Issues and PRs related to JavaScript errors originated in Node.js core. typings

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants