flowgen icon indicating copy to clipboard operation
flowgen copied to clipboard

Generate flowtype definition files from TypeScript

Results 59 flowgen issues
Sort by recently updated
recently updated
newest added

In typescript it is possible to mix type and value imports, which currently is not correctly converted to flow. This change adds logic to check if import for type and...

Hi there, I'm having troubles with deep-freeze library definition file and having a bit of trouble understanding how to fix it myself. Here is the definition file from typescript: https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/deep-freeze/index.d.ts...

Seems like there is a bug when transforming template literals: ```ts export type StoreVersion = `${number}.${number}.${number}` | number; ``` transforms to: ```flow declare export type StoreVersion = undefined: /* NO...

`flowgen` does not parse comma-separated type imports correctly. The following diff shows the `imports.spec.ts` updated with this style of import and the resulting malformed import: ```diff diff --git a/src/__tests__/imports.spec.ts b/src/__tests__/imports.spec.ts...

you can do this
new ts feature

In Flow syntax, a type like `{| x: number |}` means an [exact object type](https://flow.org/en/docs/types/objects/#toc-exact-object-types), while `{ x: number, ... }` means an inexact object type. The form `{ x:...

Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6. Commits 7efb22a 1.2.6 ef88b93 security notice for additional prototype pollution issue c2b9819 isConstructorOrProto adapted from PR bc8ecee test from prototype pollution PR See full...

dependencies

Bumps [shelljs](https://github.com/shelljs/shelljs) from 0.8.4 to 0.8.5. Release notes Sourced from shelljs's releases. v0.8.5 This was a small security fix for #1058. Commits 70668a4 0.8.5 d919d22 fix(exec): lockdown file permissions (#1060)...

dependencies

Bumps [lodash](https://github.com/lodash/lodash) from 4.17.20 to 4.17.21. Commits f299b52 Bump to v4.17.21 c4847eb Improve performance of toNumber, trim and trimEnd on large input strings 3469357 Prevent command injection through _.template's variable...

dependencies

Bumps [glob-parent](https://github.com/gulpjs/glob-parent) from 5.1.1 to 5.1.2. Release notes Sourced from glob-parent's releases. v5.1.2 Bug Fixes eliminate ReDoS (#36) (f923116) Changelog Sourced from glob-parent's changelog. 5.1.2 (2021-03-06) Bug Fixes eliminate ReDoS...

dependencies

Bumps [path-parse](https://github.com/jbgutierrez/path-parse) from 1.0.6 to 1.0.7. Commits See full diff in compare view [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=path-parse&package-manager=npm_and_yarn&previous-version=1.0.6&new-version=1.0.7)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter...

dependencies