patchImports

tcmts.cli.mcp.patchImports · #bcz4kcll · term · runs anywhere

tcm_patch's imports: what to import that importing what the code uses can't find (tcm patch --imports).

import { schema } from "#codebase/tcmts/cli/mcp";

export const patchImports = {
  type: "array",
  description:
    'imports to add, for a name the code uses that importing what it uses can\'t find (an alias: {"name": "isImportDeclaration", "from": "typescript", "as": "ts_isImportDeclaration"}); `name` "default" or "*" with `as`, `type` for a type only. One the code doesn\'t use goes',
  items: schema(
    {
      name: { type: "string" },
      from: { type: "string" },
      as: { type: "string" },
      type: { type: "boolean" },
    },
    ["name", "from"],
  ),
}

uses

used by