Skip to content

Commit

Permalink
process.exit returns empty
Browse files Browse the repository at this point in the history
Summary: This never returns, so we should be able to use its return value in any context for the purposes of typechecking

Reviewed By: mroch

Differential Revision: D26948380

fbshipit-source-id: 9c89cf424c6e32d4479d947a17a0acf01415b8f5
  • Loading branch information
nmote authored and facebook-github-bot committed Mar 10, 2021
1 parent ff14ada commit 44da322
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/node.js
Original file line number Diff line number Diff line change
Expand Up @@ -2779,7 +2779,7 @@ declare class Process extends events$EventEmitter {
): void;
execArgv : Array<string>;
execPath : string;
exit(code? : number) : void;
exit(code? : number) : empty;
exitCode? : number;
getegid? : () => number;
geteuid? : () => number;
Expand Down

0 comments on commit 44da322

Please sign in to comment.