{
  "id": "wasm-bindgen",
  "name": "wasm-bindgen",
  "description": "Generate bindings between WebAssembly and JavaScript.",
  "executables": [
    "wasm-bindgen"
  ],
  "commands": {
    "format": 1,
    "label": "Generate JS bindings",
    "description": "Process a compiled .wasm file.",
    "quality": "ai-draft",
    "base": "fig:wasm-bindgen",
    "parser": {
      "end_of_options": "--",
      "interleave": "permute",
      "long_equals": true,
      "short_attached": true,
      "short_bundles": false
    },
    "source": [
      {
        "id": "fig",
        "kind": "completion",
        "url": "https://github.com/withfig/autocomplete/blob/master/src/wasm-bindgen.ts",
        "license": "MIT"
      }
    ],
    "field": [
      {
        "id": "input",
        "label": "Input .wasm file",
        "type": "path",
        "position": 0,
        "path": {
          "kind": "file",
          "role": "input"
        },
        "sources": [
          "fig"
        ]
      },
      {
        "id": "out_dir",
        "label": "Output directory",
        "type": "path",
        "option": [
          "--out-dir"
        ],
        "path": {
          "kind": "directory",
          "role": "output"
        },
        "sources": [
          "fig"
        ]
      },
      {
        "id": "out_name",
        "label": "Output name",
        "type": "string",
        "option": [
          "--out-name"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "target",
        "label": "Target",
        "type": "string",
        "option": [
          "--target"
        ],
        "suggestions": [
          {
            "value": "web",
            "label": "web"
          },
          {
            "value": "bundler",
            "label": "bundler"
          },
          {
            "value": "nodejs",
            "label": "nodejs"
          },
          {
            "value": "no-modules",
            "label": "no-modules"
          },
          {
            "value": "deno",
            "label": "deno"
          }
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "typescript",
        "label": "Emit TypeScript definitions",
        "type": "boolean",
        "option": [
          "--typescript"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "no_typescript",
        "label": "No .d.ts",
        "type": "boolean",
        "option": [
          "--no-typescript"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "debug",
        "label": "Debug checks",
        "type": "boolean",
        "option": [
          "--debug"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "keep_debug",
        "label": "Keep debug sections",
        "type": "boolean",
        "option": [
          "--keep-debug"
        ],
        "sources": [
          "fig"
        ]
      }
    ],
    "task": [
      {
        "id": "bindgen",
        "label": "Generate",
        "fields": [
          "input",
          "out_dir",
          "out_name",
          "target",
          "typescript",
          "no_typescript",
          "debug",
          "keep_debug"
        ],
        "required": [
          "input"
        ]
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "input",
          "out_dir",
          "out_name",
          "target",
          "typescript",
          "no_typescript",
          "debug",
          "keep_debug"
        ]
      }
    ]
  }
}
