-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
flow typings for node's built-in Module
module
#5364
Conversation
Co-authored-by: Will Binns-Smith <[email protected]>
|
434491e
to
80c4802
Compare
Module
module
Maybe we should also try upstreaming this: https://github.com/facebook/flow/blob/05cd1bae10d89c9d4155ab99d2d1a9ed5eca9f9b/lib/node.js#L125-L130 |
@mischnic sounds good! will be following up with a submission to the Node.js libdef in the main flow repo |
Benchmark ResultsKitchen Sink ✅
Timings
Cold Bundles
Cached Bundles
React HackerNews ✅
Timings
Cold Bundles
Cached Bundles
AtlasKit Editor 🚨
Timings
Cold BundlesNo bundles found, this is probably a failed build... Cached Bundles
Three.js x4 🚨
Timings
Cold BundlesNo bundles found, this is probably a failed build... Cached BundlesNo bundles found, this is probably a failed build... |
184b0b0
to
2b1e3d6
Compare
…rcel into gkong/node-module-flow
2b1e3d6
to
f8970de
Compare
flow-libs/module.js.flow
Outdated
declare type FilePath = string; | ||
|
||
// Derived from https://github.com/facebook/flow/blob/61913b9f0dcd564fd4c74fefbe896b33ef447cab/lib/node.js | ||
declare class Url { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
import type {URL} from 'url'
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks like this is addressed in the upstream PR :) facebook/flow#8540
…rcel into gkong/node-module-flow
Test Plan: