joarwilk / flowgen

Generate flowtype definition files from TypeScript
Other
657 stars 87 forks source link

Add flow headers option is ignored #154

Open hnrchrdl opened 2 years ago

hnrchrdl commented 2 years ago

When using the node library, it seems the addFlowHeader option is ignored.

For example when running this code, no flow headers (// @flow) are inserted.

compiler.compileDefinitionString(code, { addFlowHeader: true } );

Is this intended or a bug? If bug, i could create a PR to fix it, let me know.

orta commented 2 years ago

Seems like a bug to me?