{
  "slug": "typescript-transpiler",
  "name": "gizza-ai/typescript-transpiler",
  "version": "0.1.0",
  "title": "TypeScript Transpiler — Strip Types to JavaScript — gizza.ai",
  "description": "Paste TypeScript and convert it to best-effort JavaScript locally by stripping annotations, interfaces, assertions, and simple enums.",
  "tags": [
    "typescript transpiler",
    "typescript to javascript",
    "strip types",
    "ts to js",
    "javascript converter",
    "webassembly"
  ],
  "category": "developer",
  "urls": {
    "page": "https://gizza.ai/tools/typescript-transpiler/",
    "markdown": "https://gizza.ai/tools/typescript-transpiler/index.md",
    "descriptor": "https://gizza.ai/tools/typescript-transpiler/tool.json",
    "deep_link_example": "https://gizza.ai/tools/typescript-transpiler/?input=type%20User%20%3D%20%7B%20name%3A%20string%20%7D%0Aexport%20function%20greet%28name%3A%20string%29%3A%20string%20%7B%0A%20%20return%20%60Hello%20%24%7Bname%7D%60%20as%20string%3B%0A%7D&enum_style=compile&remove_comments=true"
  },
  "cli": "gizza tool typescript-transpiler 'type User = { name: string }\nexport function greet(name: string): string {\n  return `Hello ${name}` as string;\n}'",
  "tool": {
    "description": "Transpile small TypeScript snippets to JavaScript locally by stripping type annotations, interfaces, type aliases, assertions, optional markers, modifiers, implements clauses, type-only imports/exports, and simple enum declarations. This is a deterministic syntax stripper, not a full TypeScript compiler or type checker.",
    "parameters": {
      "additionalProperties": false,
      "properties": {
        "enum_style": {
          "default": "compile",
          "description": "How to handle TypeScript enum declarations: compile them to simple JavaScript objects, or strip them as type-only declarations.",
          "enum": [
            "compile",
            "strip"
          ],
          "type": "string"
        },
        "input": {
          "description": "TypeScript source to convert into best-effort JavaScript by removing type-only syntax. Maximum 1 MB.",
          "type": "string"
        },
        "remove_comments": {
          "default": false,
          "description": "Remove line and block comments from the output in addition to stripping TypeScript syntax.",
          "type": "boolean"
        }
      },
      "required": [
        "input"
      ],
      "type": "object"
    }
  }
}