Relative Content

Tag Archive for flowtype

Create union object

I’m trying to write a function that creates an object with all the common attributes of a union type but as far as I can tell it is not possible without a FlowFixMe. Here’s an example

Tell Flowtype to read files before analysis

Working in a vanilla JS project (NOT the vanilla framework), it would be nice to be able to preload some JS files before analyzing the “main” file you want to check. Is this possible? Or do I have to write manual declare-files?