flowgen icon indicating copy to clipboard operation
flowgen copied to clipboard

Allow scoped module names

Open joshuanapoli opened this issue 1 year ago • 0 comments

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();
}

joshuanapoli avatar Nov 06 '23 16:11 joshuanapoli