├── .circleci └── config.yml ├── .gitignore ├── LICENSE.md ├── README.md ├── package.json ├── prettier.config.js ├── src ├── cli.ts ├── convert.ts ├── index.ts ├── types.d.ts └── utils.ts ├── test ├── e2e │ └── QueryBuilder │ │ ├── input.txt │ │ └── output.txt ├── rules │ ├── $Exact │ │ ├── input.txt │ │ └── output.txt │ ├── $Keys │ │ ├── input.txt │ │ └── output.txt │ ├── $ReadOnly │ │ ├── input.txt │ │ └── output.txt │ ├── .flowconfig │ ├── Bounds │ │ ├── input.txt │ │ └── output.txt │ ├── Casting │ │ ├── input.txt │ │ └── output.txt │ ├── Comments │ │ ├── input.txt │ │ └── output.txt │ ├── Exact │ │ ├── input.txt │ │ └── output.txt │ ├── Functions │ │ ├── input.txt │ │ └── output.txt │ ├── Functions2 │ │ ├── input.txt │ │ └── output.txt │ ├── Indexers │ │ ├── input.txt │ │ └── output.txt │ ├── Maybe │ │ ├── input.txt │ │ └── output.txt │ ├── Mixed │ │ ├── input.txt │ │ └── output.txt │ ├── Opaque │ │ ├── input.txt │ │ └── output.txt │ ├── TypeImport │ │ ├── input.txt │ │ └── output.txt │ ├── Undefined │ │ ├── input.txt │ │ └── output.txt │ ├── Variance │ │ ├── input.txt │ │ └── output.txt │ └── tslint.json ├── test.ts └── unit │ ├── Types │ ├── input.txt │ └── output.txt │ └── Union │ ├── input.txt │ └── output.txt ├── tsconfig.json ├── tslint.json └── yarn.lock /.circleci/config.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjie/flow2typescript/HEAD/.circleci/config.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | dist 3 | node_modules 4 | yarn-error.log 5 | -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjie/flow2typescript/HEAD/LICENSE.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjie/flow2typescript/HEAD/README.md -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjie/flow2typescript/HEAD/package.json -------------------------------------------------------------------------------- /prettier.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjie/flow2typescript/HEAD/prettier.config.js -------------------------------------------------------------------------------- /src/cli.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjie/flow2typescript/HEAD/src/cli.ts -------------------------------------------------------------------------------- /src/convert.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjie/flow2typescript/HEAD/src/convert.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjie/flow2typescript/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/types.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjie/flow2typescript/HEAD/src/types.d.ts -------------------------------------------------------------------------------- /src/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjie/flow2typescript/HEAD/src/utils.ts -------------------------------------------------------------------------------- /test/e2e/QueryBuilder/input.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjie/flow2typescript/HEAD/test/e2e/QueryBuilder/input.txt -------------------------------------------------------------------------------- /test/e2e/QueryBuilder/output.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjie/flow2typescript/HEAD/test/e2e/QueryBuilder/output.txt -------------------------------------------------------------------------------- /test/rules/$Exact/input.txt: -------------------------------------------------------------------------------- 1 | /* @flow */ 2 | 3 | type A = $Exact 4 | -------------------------------------------------------------------------------- /test/rules/$Exact/output.txt: -------------------------------------------------------------------------------- 1 | type A = B; 2 | -------------------------------------------------------------------------------- /test/rules/$Keys/input.txt: -------------------------------------------------------------------------------- 1 | /* @flow */ 2 | 3 | type A = B | $Keys 4 | -------------------------------------------------------------------------------- /test/rules/$Keys/output.txt: -------------------------------------------------------------------------------- 1 | type A = B | keyof A; 2 | -------------------------------------------------------------------------------- /test/rules/$ReadOnly/input.txt: -------------------------------------------------------------------------------- 1 | /* @flow */ 2 | 3 | type A = $ReadOnly 4 | -------------------------------------------------------------------------------- /test/rules/$ReadOnly/output.txt: -------------------------------------------------------------------------------- 1 | type A = Readonly; 2 | -------------------------------------------------------------------------------- /test/rules/.flowconfig: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/rules/Bounds/input.txt: -------------------------------------------------------------------------------- 1 | /* @flow */ 2 | 3 | type Bounds = A 4 | -------------------------------------------------------------------------------- /test/rules/Bounds/output.txt: -------------------------------------------------------------------------------- 1 | type Bounds = A; 2 | -------------------------------------------------------------------------------- /test/rules/Casting/input.txt: -------------------------------------------------------------------------------- 1 | /* @flow */ 2 | 3 | let Casting = (42: number) 4 | -------------------------------------------------------------------------------- /test/rules/Casting/output.txt: -------------------------------------------------------------------------------- 1 | let Casting = (42 as number); 2 | -------------------------------------------------------------------------------- /test/rules/Comments/input.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjie/flow2typescript/HEAD/test/rules/Comments/input.txt -------------------------------------------------------------------------------- /test/rules/Comments/output.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjie/flow2typescript/HEAD/test/rules/Comments/output.txt -------------------------------------------------------------------------------- /test/rules/Exact/input.txt: -------------------------------------------------------------------------------- 1 | /* @flow */ 2 | 3 | type Exact = {| a: number, b: string |} 4 | -------------------------------------------------------------------------------- /test/rules/Exact/output.txt: -------------------------------------------------------------------------------- 1 | type Exact = {a: number;b: string;}; 2 | -------------------------------------------------------------------------------- /test/rules/Functions/input.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjie/flow2typescript/HEAD/test/rules/Functions/input.txt -------------------------------------------------------------------------------- /test/rules/Functions/output.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjie/flow2typescript/HEAD/test/rules/Functions/output.txt -------------------------------------------------------------------------------- /test/rules/Functions2/input.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjie/flow2typescript/HEAD/test/rules/Functions2/input.txt -------------------------------------------------------------------------------- /test/rules/Functions2/output.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjie/flow2typescript/HEAD/test/rules/Functions2/output.txt -------------------------------------------------------------------------------- /test/rules/Indexers/input.txt: -------------------------------------------------------------------------------- 1 | /* @flow */ 2 | 3 | type Indexer = { 4 | // comment 5 | [string]: boolean 6 | } 7 | -------------------------------------------------------------------------------- /test/rules/Indexers/output.txt: -------------------------------------------------------------------------------- 1 | type Indexer = { 2 | // comment 3 | [a: string]: boolean;}; 4 | -------------------------------------------------------------------------------- /test/rules/Maybe/input.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjie/flow2typescript/HEAD/test/rules/Maybe/input.txt -------------------------------------------------------------------------------- /test/rules/Maybe/output.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjie/flow2typescript/HEAD/test/rules/Maybe/output.txt -------------------------------------------------------------------------------- /test/rules/Mixed/input.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjie/flow2typescript/HEAD/test/rules/Mixed/input.txt -------------------------------------------------------------------------------- /test/rules/Mixed/output.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjie/flow2typescript/HEAD/test/rules/Mixed/output.txt -------------------------------------------------------------------------------- /test/rules/Opaque/input.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjie/flow2typescript/HEAD/test/rules/Opaque/input.txt -------------------------------------------------------------------------------- /test/rules/Opaque/output.txt: -------------------------------------------------------------------------------- 1 | type Opaque = number; 2 | -------------------------------------------------------------------------------- /test/rules/TypeImport/input.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjie/flow2typescript/HEAD/test/rules/TypeImport/input.txt -------------------------------------------------------------------------------- /test/rules/TypeImport/output.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjie/flow2typescript/HEAD/test/rules/TypeImport/output.txt -------------------------------------------------------------------------------- /test/rules/Undefined/input.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjie/flow2typescript/HEAD/test/rules/Undefined/input.txt -------------------------------------------------------------------------------- /test/rules/Undefined/output.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjie/flow2typescript/HEAD/test/rules/Undefined/output.txt -------------------------------------------------------------------------------- /test/rules/Variance/input.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjie/flow2typescript/HEAD/test/rules/Variance/input.txt -------------------------------------------------------------------------------- /test/rules/Variance/output.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjie/flow2typescript/HEAD/test/rules/Variance/output.txt -------------------------------------------------------------------------------- /test/rules/tslint.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjie/flow2typescript/HEAD/test/rules/tslint.json -------------------------------------------------------------------------------- /test/test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjie/flow2typescript/HEAD/test/test.ts -------------------------------------------------------------------------------- /test/unit/Types/input.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjie/flow2typescript/HEAD/test/unit/Types/input.txt -------------------------------------------------------------------------------- /test/unit/Types/output.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjie/flow2typescript/HEAD/test/unit/Types/output.txt -------------------------------------------------------------------------------- /test/unit/Union/input.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjie/flow2typescript/HEAD/test/unit/Union/input.txt -------------------------------------------------------------------------------- /test/unit/Union/output.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjie/flow2typescript/HEAD/test/unit/Union/output.txt -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjie/flow2typescript/HEAD/tsconfig.json -------------------------------------------------------------------------------- /tslint.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjie/flow2typescript/HEAD/tslint.json -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjie/flow2typescript/HEAD/yarn.lock --------------------------------------------------------------------------------