joarwilk / flowgen

Generate flowtype definition files from TypeScript
Other
658 stars 78 forks source link

Parsing error: `Unexpected string` #17

Open yfr opened 7 years ago

yfr commented 7 years ago

I tried to convert the google maps type definitions from here https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/googlemaps/index.d.ts

When I just do flowgen index.d.ts I get the parsing error.

Library parse error:
flow-typed/app/maps.flow.js:355
355:     declare module 'Data' {
                        ^^^^^^ Unexpected string

I have flow-bin version 0.50.0 installed

yfr commented 7 years ago

Just saw that when I try to use this file in vscode it says something like this:

'declare module' cannot be used inside another 'declare module' for the same line.

Is there maybe a version mismatch? I don't now much about the format of the declaration files but for what flow version are these files generated?