Skip to content

Commit 6458ae0

Browse files
robhoganfacebook-github-bot
authored andcommitted
Add lib defs for Node.js fs.glob, etc. (#54695)
Summary: Add Flow typing for `fs.glob` APIs introduced in Node v22 Changelog: [Internal] Reviewed By: cipolleschi, vzaidman Differential Revision: D78668287
1 parent dba18bb commit 6458ae0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

flow-typed/environment/node.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@ interface ErrnoError extends Error {
2121
syscall?: string;
2222
}
2323

24+
type Node$Conditional<T: boolean, IfTrue, IfFalse> = T extends true
25+
? IfTrue
26+
: T extends false
27+
? IfFalse
28+
: IfTrue | IfFalse;
29+
2430
type buffer$NonBufferEncoding =
2531
| 'hex'
2632
| 'HEX'

0 commit comments

Comments
 (0)