├── .editorconfig ├── .eslintrc.yml ├── .gitattributes ├── .gitignore ├── .vscode ├── launch.json ├── settings.json └── tasks.json ├── LICENSE ├── README.md ├── cli ├── package.json ├── src │ └── index.ts └── tsconfig.json ├── dprint.json ├── package.json ├── playground ├── index.html ├── package.json ├── src │ ├── App.tsx │ ├── components │ │ ├── CodeSnippets.tsx │ │ ├── FooterBar.tsx │ │ ├── HeaderBar.tsx │ │ ├── OutputControl.tsx │ │ ├── TypeCakeEditor.tsx │ │ └── TypeScriptEditor.tsx │ ├── index.tsx │ ├── snippets │ │ ├── features │ │ │ ├── basic.tc │ │ │ ├── const-in.tc │ │ │ ├── for-expr.tc │ │ │ ├── if-expr.tc │ │ │ ├── import.tc │ │ │ ├── infer.tc │ │ │ ├── intersection-type.tc │ │ │ ├── object-type.tc │ │ │ ├── pipeline.tc │ │ │ ├── switch-expr.tc │ │ │ ├── template-literal.tc │ │ │ ├── tuples-and-arrays.tc │ │ │ └── union-type.tc │ │ └── real-world │ │ │ ├── camel-case.tc │ │ │ └── unwrap-promise.tc │ ├── states │ │ └── codeAtom.ts │ └── utils │ │ └── editor-options.ts ├── tsconfig.json └── vite.config.ts ├── pnpm-lock.yaml ├── pnpm-workspace.yaml ├── src ├── ast.ts ├── emitter.ts ├── index.ts ├── parser.ts ├── scope.ts ├── traverser.ts └── utils.ts ├── tests ├── compiler │ ├── compiler.test.ts │ ├── fixtures │ │ ├── array │ │ │ ├── complex.tc │ │ │ └── simple.tc │ │ ├── call │ │ │ ├── basic.tc │ │ │ └── trailing-comma.tc │ │ ├── identifier │ │ │ ├── basic.tc │ │ │ ├── fn.tc │ │ │ ├── from.tc │ │ │ ├── ts-keyword.tc │ │ │ └── undefined.tc │ │ ├── if-expression │ │ │ ├── basic.tc │ │ │ ├── else-if.tc │ │ │ ├── equality.tc │ │ │ ├── logical-and.tc │ │ │ ├── nested.tc │ │ │ └── single-line.tc │ │ ├── imports │ │ │ ├── default.tc │ │ │ ├── named.tc │ │ │ └── namespace.tc │ │ ├── intersection │ │ │ ├── multi-lines.tc │ │ │ ├── single-line.tc │ │ │ └── with-union.tc │ │ ├── literal │ │ │ ├── boolean.tc │ │ │ ├── null.tc │ │ │ ├── number.tc │ │ │ ├── string.tc │ │ │ └── template.tc │ │ ├── namespace │ │ │ └── basic.tc │ │ ├── objects │ │ │ ├── basic.tc │ │ │ ├── indexed.tc │ │ │ └── trailing-comma.tc │ │ ├── tuple │ │ │ ├── basic.tc │ │ │ ├── nested.tc │ │ │ ├── rest.tc │ │ │ └── trailing-comma.tc │ │ └── union │ │ │ ├── multi-lines.tc │ │ │ ├── single-line.tc │ │ │ └── with-intersection.tc │ └── snapshots │ │ ├── array │ │ ├── complex │ │ │ ├── output.ts │ │ │ └── parser.json │ │ └── simple │ │ │ ├── output.ts │ │ │ └── parser.json │ │ ├── call │ │ ├── basic │ │ │ ├── output.ts │ │ │ └── parser.json │ │ └── trailing-comma │ │ │ ├── output.ts │ │ │ └── parser.json │ │ ├── identifier │ │ ├── basic │ │ │ ├── output.ts │ │ │ └── parser.json │ │ ├── fn │ │ │ ├── output.ts │ │ │ └── parser.json │ │ ├── from │ │ │ ├── output.ts │ │ │ └── parser.json │ │ ├── ts-keyword │ │ │ ├── output.ts │ │ │ └── parser.json │ │ └── undefined │ │ │ ├── output.ts │ │ │ └── parser.json │ │ ├── if-expression │ │ ├── basic │ │ │ ├── output.ts │ │ │ └── parser.json │ │ ├── else-if │ │ │ ├── output.ts │ │ │ └── parser.json │ │ ├── equality │ │ │ ├── output.ts │ │ │ └── parser.json │ │ ├── logical-and │ │ │ ├── output.ts │ │ │ └── parser.json │ │ ├── nested │ │ │ ├── output.ts │ │ │ └── parser.json │ │ └── single-line │ │ │ ├── output.ts │ │ │ └── parser.json │ │ ├── imports │ │ ├── default │ │ │ ├── output.ts │ │ │ └── parser.json │ │ ├── named │ │ │ ├── output.ts │ │ │ └── parser.json │ │ └── namespace │ │ │ ├── output.ts │ │ │ └── parser.json │ │ ├── intersection │ │ ├── multi-lines │ │ │ ├── output.ts │ │ │ └── parser.json │ │ ├── single-line │ │ │ ├── output.ts │ │ │ └── parser.json │ │ └── with-union │ │ │ ├── output.ts │ │ │ └── parser.json │ │ ├── literal │ │ ├── boolean │ │ │ ├── output.ts │ │ │ └── parser.json │ │ ├── null │ │ │ ├── output.ts │ │ │ └── parser.json │ │ ├── number │ │ │ ├── output.ts │ │ │ └── parser.json │ │ ├── string │ │ │ ├── output.ts │ │ │ └── parser.json │ │ └── template │ │ │ ├── output.ts │ │ │ └── parser.json │ │ ├── namespace │ │ └── basic │ │ │ ├── output.ts │ │ │ └── parser.json │ │ ├── objects │ │ ├── basic │ │ │ ├── output.ts │ │ │ └── parser.json │ │ ├── indexed │ │ │ ├── output.ts │ │ │ └── parser.json │ │ └── trailing-comma │ │ │ ├── output.ts │ │ │ └── parser.json │ │ ├── tuple │ │ ├── basic │ │ │ ├── output.ts │ │ │ └── parser.json │ │ ├── nested │ │ │ ├── output.ts │ │ │ └── parser.json │ │ ├── rest │ │ │ ├── output.ts │ │ │ └── parser.json │ │ └── trailing-comma │ │ │ ├── output.ts │ │ │ └── parser.json │ │ └── union │ │ ├── multi-lines │ │ ├── output.ts │ │ └── parser.json │ │ ├── single-line │ │ ├── output.ts │ │ └── parser.json │ │ └── with-intersection │ │ ├── output.ts │ │ └── parser.json └── utils.ts ├── tsconfig.json └── vercel.json /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/.editorconfig -------------------------------------------------------------------------------- /.eslintrc.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/.eslintrc.yml -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | tests/compiler/snapshots/** linguist-detectable=false 2 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | dist/ 2 | node_modules/ 3 | -------------------------------------------------------------------------------- /.vscode/launch.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/.vscode/launch.json -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/.vscode/settings.json -------------------------------------------------------------------------------- /.vscode/tasks.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/.vscode/tasks.json -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/README.md -------------------------------------------------------------------------------- /cli/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/cli/package.json -------------------------------------------------------------------------------- /cli/src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/cli/src/index.ts -------------------------------------------------------------------------------- /cli/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/cli/tsconfig.json -------------------------------------------------------------------------------- /dprint.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/dprint.json -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/package.json -------------------------------------------------------------------------------- /playground/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/playground/index.html -------------------------------------------------------------------------------- /playground/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/playground/package.json -------------------------------------------------------------------------------- /playground/src/App.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/playground/src/App.tsx -------------------------------------------------------------------------------- /playground/src/components/CodeSnippets.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/playground/src/components/CodeSnippets.tsx -------------------------------------------------------------------------------- /playground/src/components/FooterBar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/playground/src/components/FooterBar.tsx -------------------------------------------------------------------------------- /playground/src/components/HeaderBar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/playground/src/components/HeaderBar.tsx -------------------------------------------------------------------------------- /playground/src/components/OutputControl.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/playground/src/components/OutputControl.tsx -------------------------------------------------------------------------------- /playground/src/components/TypeCakeEditor.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/playground/src/components/TypeCakeEditor.tsx -------------------------------------------------------------------------------- /playground/src/components/TypeScriptEditor.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/playground/src/components/TypeScriptEditor.tsx -------------------------------------------------------------------------------- /playground/src/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/playground/src/index.tsx -------------------------------------------------------------------------------- /playground/src/snippets/features/basic.tc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/playground/src/snippets/features/basic.tc -------------------------------------------------------------------------------- /playground/src/snippets/features/const-in.tc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/playground/src/snippets/features/const-in.tc -------------------------------------------------------------------------------- /playground/src/snippets/features/for-expr.tc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/playground/src/snippets/features/for-expr.tc -------------------------------------------------------------------------------- /playground/src/snippets/features/if-expr.tc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/playground/src/snippets/features/if-expr.tc -------------------------------------------------------------------------------- /playground/src/snippets/features/import.tc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/playground/src/snippets/features/import.tc -------------------------------------------------------------------------------- /playground/src/snippets/features/infer.tc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/playground/src/snippets/features/infer.tc -------------------------------------------------------------------------------- /playground/src/snippets/features/intersection-type.tc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/playground/src/snippets/features/intersection-type.tc -------------------------------------------------------------------------------- /playground/src/snippets/features/object-type.tc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/playground/src/snippets/features/object-type.tc -------------------------------------------------------------------------------- /playground/src/snippets/features/pipeline.tc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/playground/src/snippets/features/pipeline.tc -------------------------------------------------------------------------------- /playground/src/snippets/features/switch-expr.tc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/playground/src/snippets/features/switch-expr.tc -------------------------------------------------------------------------------- /playground/src/snippets/features/template-literal.tc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/playground/src/snippets/features/template-literal.tc -------------------------------------------------------------------------------- /playground/src/snippets/features/tuples-and-arrays.tc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/playground/src/snippets/features/tuples-and-arrays.tc -------------------------------------------------------------------------------- /playground/src/snippets/features/union-type.tc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/playground/src/snippets/features/union-type.tc -------------------------------------------------------------------------------- /playground/src/snippets/real-world/camel-case.tc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/playground/src/snippets/real-world/camel-case.tc -------------------------------------------------------------------------------- /playground/src/snippets/real-world/unwrap-promise.tc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/playground/src/snippets/real-world/unwrap-promise.tc -------------------------------------------------------------------------------- /playground/src/states/codeAtom.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/playground/src/states/codeAtom.ts -------------------------------------------------------------------------------- /playground/src/utils/editor-options.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/playground/src/utils/editor-options.ts -------------------------------------------------------------------------------- /playground/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/playground/tsconfig.json -------------------------------------------------------------------------------- /playground/vite.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/playground/vite.config.ts -------------------------------------------------------------------------------- /pnpm-lock.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/pnpm-lock.yaml -------------------------------------------------------------------------------- /pnpm-workspace.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/pnpm-workspace.yaml -------------------------------------------------------------------------------- /src/ast.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/src/ast.ts -------------------------------------------------------------------------------- /src/emitter.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/src/emitter.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/parser.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/src/parser.ts -------------------------------------------------------------------------------- /src/scope.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/src/scope.ts -------------------------------------------------------------------------------- /src/traverser.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/src/traverser.ts -------------------------------------------------------------------------------- /src/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/src/utils.ts -------------------------------------------------------------------------------- /tests/compiler/compiler.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/tests/compiler/compiler.test.ts -------------------------------------------------------------------------------- /tests/compiler/fixtures/array/complex.tc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/tests/compiler/fixtures/array/complex.tc -------------------------------------------------------------------------------- /tests/compiler/fixtures/array/simple.tc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/tests/compiler/fixtures/array/simple.tc -------------------------------------------------------------------------------- /tests/compiler/fixtures/call/basic.tc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/tests/compiler/fixtures/call/basic.tc -------------------------------------------------------------------------------- /tests/compiler/fixtures/call/trailing-comma.tc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/tests/compiler/fixtures/call/trailing-comma.tc -------------------------------------------------------------------------------- /tests/compiler/fixtures/identifier/basic.tc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/tests/compiler/fixtures/identifier/basic.tc -------------------------------------------------------------------------------- /tests/compiler/fixtures/identifier/fn.tc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/tests/compiler/fixtures/identifier/fn.tc -------------------------------------------------------------------------------- /tests/compiler/fixtures/identifier/from.tc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/tests/compiler/fixtures/identifier/from.tc -------------------------------------------------------------------------------- /tests/compiler/fixtures/identifier/ts-keyword.tc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/tests/compiler/fixtures/identifier/ts-keyword.tc -------------------------------------------------------------------------------- /tests/compiler/fixtures/identifier/undefined.tc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/tests/compiler/fixtures/identifier/undefined.tc -------------------------------------------------------------------------------- /tests/compiler/fixtures/if-expression/basic.tc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/tests/compiler/fixtures/if-expression/basic.tc -------------------------------------------------------------------------------- /tests/compiler/fixtures/if-expression/else-if.tc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/tests/compiler/fixtures/if-expression/else-if.tc -------------------------------------------------------------------------------- /tests/compiler/fixtures/if-expression/equality.tc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/tests/compiler/fixtures/if-expression/equality.tc -------------------------------------------------------------------------------- /tests/compiler/fixtures/if-expression/logical-and.tc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/tests/compiler/fixtures/if-expression/logical-and.tc -------------------------------------------------------------------------------- /tests/compiler/fixtures/if-expression/nested.tc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/tests/compiler/fixtures/if-expression/nested.tc -------------------------------------------------------------------------------- /tests/compiler/fixtures/if-expression/single-line.tc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/tests/compiler/fixtures/if-expression/single-line.tc -------------------------------------------------------------------------------- /tests/compiler/fixtures/imports/default.tc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/tests/compiler/fixtures/imports/default.tc -------------------------------------------------------------------------------- /tests/compiler/fixtures/imports/named.tc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/tests/compiler/fixtures/imports/named.tc -------------------------------------------------------------------------------- /tests/compiler/fixtures/imports/namespace.tc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/tests/compiler/fixtures/imports/namespace.tc -------------------------------------------------------------------------------- /tests/compiler/fixtures/intersection/multi-lines.tc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/tests/compiler/fixtures/intersection/multi-lines.tc -------------------------------------------------------------------------------- /tests/compiler/fixtures/intersection/single-line.tc: -------------------------------------------------------------------------------- 1 | fn F1() = string & number & boolean 2 | -------------------------------------------------------------------------------- /tests/compiler/fixtures/intersection/with-union.tc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/tests/compiler/fixtures/intersection/with-union.tc -------------------------------------------------------------------------------- /tests/compiler/fixtures/literal/boolean.tc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/tests/compiler/fixtures/literal/boolean.tc -------------------------------------------------------------------------------- /tests/compiler/fixtures/literal/null.tc: -------------------------------------------------------------------------------- 1 | fn F1() = null 2 | -------------------------------------------------------------------------------- /tests/compiler/fixtures/literal/number.tc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/tests/compiler/fixtures/literal/number.tc -------------------------------------------------------------------------------- /tests/compiler/fixtures/literal/string.tc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/tests/compiler/fixtures/literal/string.tc -------------------------------------------------------------------------------- /tests/compiler/fixtures/literal/template.tc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/tests/compiler/fixtures/literal/template.tc -------------------------------------------------------------------------------- /tests/compiler/fixtures/namespace/basic.tc: -------------------------------------------------------------------------------- 1 | fn F1() = MyNamespace.MyType 2 | -------------------------------------------------------------------------------- /tests/compiler/fixtures/objects/basic.tc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/tests/compiler/fixtures/objects/basic.tc -------------------------------------------------------------------------------- /tests/compiler/fixtures/objects/indexed.tc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/tests/compiler/fixtures/objects/indexed.tc -------------------------------------------------------------------------------- /tests/compiler/fixtures/objects/trailing-comma.tc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/tests/compiler/fixtures/objects/trailing-comma.tc -------------------------------------------------------------------------------- /tests/compiler/fixtures/tuple/basic.tc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/tests/compiler/fixtures/tuple/basic.tc -------------------------------------------------------------------------------- /tests/compiler/fixtures/tuple/nested.tc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/tests/compiler/fixtures/tuple/nested.tc -------------------------------------------------------------------------------- /tests/compiler/fixtures/tuple/rest.tc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/tests/compiler/fixtures/tuple/rest.tc -------------------------------------------------------------------------------- /tests/compiler/fixtures/tuple/trailing-comma.tc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/tests/compiler/fixtures/tuple/trailing-comma.tc -------------------------------------------------------------------------------- /tests/compiler/fixtures/union/multi-lines.tc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/tests/compiler/fixtures/union/multi-lines.tc -------------------------------------------------------------------------------- /tests/compiler/fixtures/union/single-line.tc: -------------------------------------------------------------------------------- 1 | fn F1() = string | number | boolean 2 | -------------------------------------------------------------------------------- /tests/compiler/fixtures/union/with-intersection.tc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/tests/compiler/fixtures/union/with-intersection.tc -------------------------------------------------------------------------------- /tests/compiler/snapshots/array/complex/output.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/tests/compiler/snapshots/array/complex/output.ts -------------------------------------------------------------------------------- /tests/compiler/snapshots/array/complex/parser.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/tests/compiler/snapshots/array/complex/parser.json -------------------------------------------------------------------------------- /tests/compiler/snapshots/array/simple/output.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/tests/compiler/snapshots/array/simple/output.ts -------------------------------------------------------------------------------- /tests/compiler/snapshots/array/simple/parser.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/tests/compiler/snapshots/array/simple/parser.json -------------------------------------------------------------------------------- /tests/compiler/snapshots/call/basic/output.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/tests/compiler/snapshots/call/basic/output.ts -------------------------------------------------------------------------------- /tests/compiler/snapshots/call/basic/parser.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/tests/compiler/snapshots/call/basic/parser.json -------------------------------------------------------------------------------- /tests/compiler/snapshots/call/trailing-comma/output.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/tests/compiler/snapshots/call/trailing-comma/output.ts -------------------------------------------------------------------------------- /tests/compiler/snapshots/call/trailing-comma/parser.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/tests/compiler/snapshots/call/trailing-comma/parser.json -------------------------------------------------------------------------------- /tests/compiler/snapshots/identifier/basic/output.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/tests/compiler/snapshots/identifier/basic/output.ts -------------------------------------------------------------------------------- /tests/compiler/snapshots/identifier/basic/parser.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/tests/compiler/snapshots/identifier/basic/parser.json -------------------------------------------------------------------------------- /tests/compiler/snapshots/identifier/fn/output.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/tests/compiler/snapshots/identifier/fn/output.ts -------------------------------------------------------------------------------- /tests/compiler/snapshots/identifier/fn/parser.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/tests/compiler/snapshots/identifier/fn/parser.json -------------------------------------------------------------------------------- /tests/compiler/snapshots/identifier/from/output.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/tests/compiler/snapshots/identifier/from/output.ts -------------------------------------------------------------------------------- /tests/compiler/snapshots/identifier/from/parser.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/tests/compiler/snapshots/identifier/from/parser.json -------------------------------------------------------------------------------- /tests/compiler/snapshots/identifier/ts-keyword/output.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/tests/compiler/snapshots/identifier/ts-keyword/output.ts -------------------------------------------------------------------------------- /tests/compiler/snapshots/identifier/ts-keyword/parser.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/tests/compiler/snapshots/identifier/ts-keyword/parser.json -------------------------------------------------------------------------------- /tests/compiler/snapshots/identifier/undefined/output.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/tests/compiler/snapshots/identifier/undefined/output.ts -------------------------------------------------------------------------------- /tests/compiler/snapshots/identifier/undefined/parser.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/tests/compiler/snapshots/identifier/undefined/parser.json -------------------------------------------------------------------------------- /tests/compiler/snapshots/if-expression/basic/output.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/tests/compiler/snapshots/if-expression/basic/output.ts -------------------------------------------------------------------------------- /tests/compiler/snapshots/if-expression/basic/parser.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/tests/compiler/snapshots/if-expression/basic/parser.json -------------------------------------------------------------------------------- /tests/compiler/snapshots/if-expression/else-if/output.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/tests/compiler/snapshots/if-expression/else-if/output.ts -------------------------------------------------------------------------------- /tests/compiler/snapshots/if-expression/else-if/parser.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/tests/compiler/snapshots/if-expression/else-if/parser.json -------------------------------------------------------------------------------- /tests/compiler/snapshots/if-expression/equality/output.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/tests/compiler/snapshots/if-expression/equality/output.ts -------------------------------------------------------------------------------- /tests/compiler/snapshots/if-expression/equality/parser.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/tests/compiler/snapshots/if-expression/equality/parser.json -------------------------------------------------------------------------------- /tests/compiler/snapshots/if-expression/logical-and/output.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/tests/compiler/snapshots/if-expression/logical-and/output.ts -------------------------------------------------------------------------------- /tests/compiler/snapshots/if-expression/logical-and/parser.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/tests/compiler/snapshots/if-expression/logical-and/parser.json -------------------------------------------------------------------------------- /tests/compiler/snapshots/if-expression/nested/output.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/tests/compiler/snapshots/if-expression/nested/output.ts -------------------------------------------------------------------------------- /tests/compiler/snapshots/if-expression/nested/parser.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/tests/compiler/snapshots/if-expression/nested/parser.json -------------------------------------------------------------------------------- /tests/compiler/snapshots/if-expression/single-line/output.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/tests/compiler/snapshots/if-expression/single-line/output.ts -------------------------------------------------------------------------------- /tests/compiler/snapshots/if-expression/single-line/parser.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/tests/compiler/snapshots/if-expression/single-line/parser.json -------------------------------------------------------------------------------- /tests/compiler/snapshots/imports/default/output.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/tests/compiler/snapshots/imports/default/output.ts -------------------------------------------------------------------------------- /tests/compiler/snapshots/imports/default/parser.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/tests/compiler/snapshots/imports/default/parser.json -------------------------------------------------------------------------------- /tests/compiler/snapshots/imports/named/output.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/tests/compiler/snapshots/imports/named/output.ts -------------------------------------------------------------------------------- /tests/compiler/snapshots/imports/named/parser.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/tests/compiler/snapshots/imports/named/parser.json -------------------------------------------------------------------------------- /tests/compiler/snapshots/imports/namespace/output.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/tests/compiler/snapshots/imports/namespace/output.ts -------------------------------------------------------------------------------- /tests/compiler/snapshots/imports/namespace/parser.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/tests/compiler/snapshots/imports/namespace/parser.json -------------------------------------------------------------------------------- /tests/compiler/snapshots/intersection/multi-lines/output.ts: -------------------------------------------------------------------------------- 1 | type F1 = string & number & boolean; 2 | -------------------------------------------------------------------------------- /tests/compiler/snapshots/intersection/multi-lines/parser.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/tests/compiler/snapshots/intersection/multi-lines/parser.json -------------------------------------------------------------------------------- /tests/compiler/snapshots/intersection/single-line/output.ts: -------------------------------------------------------------------------------- 1 | type F1 = string & number & boolean; 2 | -------------------------------------------------------------------------------- /tests/compiler/snapshots/intersection/single-line/parser.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/tests/compiler/snapshots/intersection/single-line/parser.json -------------------------------------------------------------------------------- /tests/compiler/snapshots/intersection/with-union/output.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/tests/compiler/snapshots/intersection/with-union/output.ts -------------------------------------------------------------------------------- /tests/compiler/snapshots/intersection/with-union/parser.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/tests/compiler/snapshots/intersection/with-union/parser.json -------------------------------------------------------------------------------- /tests/compiler/snapshots/literal/boolean/output.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/tests/compiler/snapshots/literal/boolean/output.ts -------------------------------------------------------------------------------- /tests/compiler/snapshots/literal/boolean/parser.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/tests/compiler/snapshots/literal/boolean/parser.json -------------------------------------------------------------------------------- /tests/compiler/snapshots/literal/null/output.ts: -------------------------------------------------------------------------------- 1 | type F1 = null; 2 | -------------------------------------------------------------------------------- /tests/compiler/snapshots/literal/null/parser.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/tests/compiler/snapshots/literal/null/parser.json -------------------------------------------------------------------------------- /tests/compiler/snapshots/literal/number/output.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/tests/compiler/snapshots/literal/number/output.ts -------------------------------------------------------------------------------- /tests/compiler/snapshots/literal/number/parser.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/tests/compiler/snapshots/literal/number/parser.json -------------------------------------------------------------------------------- /tests/compiler/snapshots/literal/string/output.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/tests/compiler/snapshots/literal/string/output.ts -------------------------------------------------------------------------------- /tests/compiler/snapshots/literal/string/parser.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/tests/compiler/snapshots/literal/string/parser.json -------------------------------------------------------------------------------- /tests/compiler/snapshots/literal/template/output.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/tests/compiler/snapshots/literal/template/output.ts -------------------------------------------------------------------------------- /tests/compiler/snapshots/literal/template/parser.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/tests/compiler/snapshots/literal/template/parser.json -------------------------------------------------------------------------------- /tests/compiler/snapshots/namespace/basic/output.ts: -------------------------------------------------------------------------------- 1 | type F1 = MyNamespace.MyType; 2 | -------------------------------------------------------------------------------- /tests/compiler/snapshots/namespace/basic/parser.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/tests/compiler/snapshots/namespace/basic/parser.json -------------------------------------------------------------------------------- /tests/compiler/snapshots/objects/basic/output.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/tests/compiler/snapshots/objects/basic/output.ts -------------------------------------------------------------------------------- /tests/compiler/snapshots/objects/basic/parser.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/tests/compiler/snapshots/objects/basic/parser.json -------------------------------------------------------------------------------- /tests/compiler/snapshots/objects/indexed/output.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/tests/compiler/snapshots/objects/indexed/output.ts -------------------------------------------------------------------------------- /tests/compiler/snapshots/objects/indexed/parser.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/tests/compiler/snapshots/objects/indexed/parser.json -------------------------------------------------------------------------------- /tests/compiler/snapshots/objects/trailing-comma/output.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/tests/compiler/snapshots/objects/trailing-comma/output.ts -------------------------------------------------------------------------------- /tests/compiler/snapshots/objects/trailing-comma/parser.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/tests/compiler/snapshots/objects/trailing-comma/parser.json -------------------------------------------------------------------------------- /tests/compiler/snapshots/tuple/basic/output.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/tests/compiler/snapshots/tuple/basic/output.ts -------------------------------------------------------------------------------- /tests/compiler/snapshots/tuple/basic/parser.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/tests/compiler/snapshots/tuple/basic/parser.json -------------------------------------------------------------------------------- /tests/compiler/snapshots/tuple/nested/output.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/tests/compiler/snapshots/tuple/nested/output.ts -------------------------------------------------------------------------------- /tests/compiler/snapshots/tuple/nested/parser.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/tests/compiler/snapshots/tuple/nested/parser.json -------------------------------------------------------------------------------- /tests/compiler/snapshots/tuple/rest/output.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/tests/compiler/snapshots/tuple/rest/output.ts -------------------------------------------------------------------------------- /tests/compiler/snapshots/tuple/rest/parser.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/tests/compiler/snapshots/tuple/rest/parser.json -------------------------------------------------------------------------------- /tests/compiler/snapshots/tuple/trailing-comma/output.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/tests/compiler/snapshots/tuple/trailing-comma/output.ts -------------------------------------------------------------------------------- /tests/compiler/snapshots/tuple/trailing-comma/parser.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/tests/compiler/snapshots/tuple/trailing-comma/parser.json -------------------------------------------------------------------------------- /tests/compiler/snapshots/union/multi-lines/output.ts: -------------------------------------------------------------------------------- 1 | type F1 = string | number | boolean; 2 | -------------------------------------------------------------------------------- /tests/compiler/snapshots/union/multi-lines/parser.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/tests/compiler/snapshots/union/multi-lines/parser.json -------------------------------------------------------------------------------- /tests/compiler/snapshots/union/single-line/output.ts: -------------------------------------------------------------------------------- 1 | type F1 = string | number | boolean; 2 | -------------------------------------------------------------------------------- /tests/compiler/snapshots/union/single-line/parser.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/tests/compiler/snapshots/union/single-line/parser.json -------------------------------------------------------------------------------- /tests/compiler/snapshots/union/with-intersection/output.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/tests/compiler/snapshots/union/with-intersection/output.ts -------------------------------------------------------------------------------- /tests/compiler/snapshots/union/with-intersection/parser.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/tests/compiler/snapshots/union/with-intersection/parser.json -------------------------------------------------------------------------------- /tests/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/tests/utils.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/tsconfig.json -------------------------------------------------------------------------------- /vercel.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g-plane/TypeCake/HEAD/vercel.json --------------------------------------------------------------------------------