flowgen
flowgen copied to clipboard
Generate flowtype definition files from TypeScript
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...
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...
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)...
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...
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...
Bumps [path-parse](https://github.com/jbgutierrez/path-parse) from 1.0.6 to 1.0.7. Commits See full diff in compare view [](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...