flowgen
flowgen copied to clipboard
Allow scoped module names
fixes #202
Treat the module name as a string, rather than a typescript identifier. This lets you use scoped module names in the --as-module
cli argument.
npx flowgen module.d.ts -o module.js --no-inexact --as-module '@company/module'
The flow output is like this:
declare module "@company/module" {
declare export function myFunction();
}