{
  "doc": {
    "id": "app/tooling/typescript-support",
    "title": "TypeScript support in Cypress",
    "description": "Learn how to set up TypeScript in Cypress, configure TypeScript for custom commands, assertions, and plugins and more",
    "section": "app",
    "source_path": "/llm/markdown/app/tooling/typescript-support.md",
    "version": "e6c8d867c21227247f14714fb5690c7c018983c5",
    "updated_at": "2026-08-08T12:39:37.868Z",
    "headings": [
      {
        "id": "app/tooling/typescript-support#typescript-support",
        "text": "TypeScript Support",
        "level": 1
      },
      {
        "id": "app/tooling/typescript-support#why-typescript-with-cypress",
        "text": "Why TypeScript with Cypress?",
        "level": 2
      },
      {
        "id": "app/tooling/typescript-support#catch-errors-at-the-editor-not-in-ci",
        "text": "Catch errors at the editor, not in CI",
        "level": 3
      },
      {
        "id": "app/tooling/typescript-support#intellisense-makes-the-api-self-documenting",
        "text": "IntelliSense makes the API self-documenting",
        "level": 3
      },
      {
        "id": "app/tooling/typescript-support#safer-refactoring-across-the-codebase",
        "text": "Safer refactoring across the codebase",
        "level": 3
      },
      {
        "id": "app/tooling/typescript-support#lower-cost-of-onboarding-and-review",
        "text": "Lower cost of onboarding and review",
        "level": 3
      },
      {
        "id": "app/tooling/typescript-support#shared-types-between-app-code-and-tests",
        "text": "Shared types between app code and tests",
        "level": 3
      },
      {
        "id": "app/tooling/typescript-support#get-started",
        "text": "Get Started",
        "level": 2
      },
      {
        "id": "app/tooling/typescript-support#install-typescript",
        "text": "Install TypeScript",
        "level": 3
      },
      {
        "id": "app/tooling/typescript-support#configure-tsconfig-json",
        "text": "Configure tsconfig.json",
        "level": 3
      },
      {
        "id": "app/tooling/typescript-support#processing-your-cypress-configuration-and-plugins",
        "text": "Processing your Cypress configuration and plugins",
        "level": 3
      },
      {
        "id": "app/tooling/typescript-support#align-tsconfig-json-with-your-module-format",
        "text": "Align tsconfig.json with your module format",
        "level": 4
      },
      {
        "id": "app/tooling/typescript-support#extending-typescript-support",
        "text": "Extending TypeScript Support",
        "level": 2
      },
      {
        "id": "app/tooling/typescript-support#types-for-custom-commands",
        "text": "Types for Custom Commands",
        "level": 3
      },
      {
        "id": "app/tooling/typescript-support#declare-global-requires-a-typescript-module-file",
        "text": "declare global requires a TypeScript module file",
        "level": 4
      },
      {
        "id": "app/tooling/typescript-support#adding-child-or-dual-commands",
        "text": "Adding child or dual commands",
        "level": 4
      },
      {
        "id": "app/tooling/typescript-support#overwriting-child-or-dual-commands",
        "text": "Overwriting child or dual commands",
        "level": 4
      },
      {
        "id": "app/tooling/typescript-support#examples",
        "text": "Examples:",
        "level": 4
      },
      {
        "id": "app/tooling/typescript-support#types-for-custom-queries",
        "text": "Types for Custom Queries",
        "level": 3
      },
      {
        "id": "app/tooling/typescript-support#types-for-custom-window-properties",
        "text": "Types for custom window properties",
        "level": 3
      },
      {
        "id": "app/tooling/typescript-support#types-for-custom-assertions",
        "text": "Types for custom assertions",
        "level": 3
      },
      {
        "id": "app/tooling/typescript-support#types-for-plugins",
        "text": "Types for plugins",
        "level": 3
      },
      {
        "id": "app/tooling/typescript-support#using-an-external-typings-file",
        "text": "Using an External Typings File",
        "level": 3
      },
      {
        "id": "app/tooling/typescript-support#ambient-declaration-file-no-imports-needed",
        "text": "Ambient declaration file (no imports needed)",
        "level": 4
      },
      {
        "id": "app/tooling/typescript-support#file-with-imports-e-g-cy-mount",
        "text": "File with imports (e.g. cy.mount)",
        "level": 4
      },
      {
        "id": "app/tooling/typescript-support#set-up-your-dev-environment",
        "text": "Set up your dev environment",
        "level": 3
      },
      {
        "id": "app/tooling/typescript-support#clashing-types-with-jest",
        "text": "Clashing types with Jest",
        "level": 3
      },
      {
        "id": "app/tooling/typescript-support#history",
        "text": "History",
        "level": 2
      },
      {
        "id": "app/tooling/typescript-support#see-also",
        "text": "See also",
        "level": 2
      }
    ]
  },
  "content": {
    "type": "root",
    "children": [
      {
        "type": "heading",
        "depth": 1,
        "children": [
          {
            "type": "text",
            "value": "TypeScript Support"
          }
        ]
      },
      {
        "type": "paragraph",
        "children": [
          {
            "type": "text",
            "value": "What you'll learn"
          }
        ]
      },
      {
        "type": "list",
        "ordered": false,
        "start": null,
        "spread": false,
        "children": [
          {
            "type": "listItem",
            "spread": false,
            "checked": null,
            "children": [
              {
                "type": "paragraph",
                "children": [
                  {
                    "type": "text",
                    "value": "How to set up TypeScript in Cypress"
                  }
                ]
              }
            ]
          },
          {
            "type": "listItem",
            "spread": false,
            "checked": null,
            "children": [
              {
                "type": "paragraph",
                "children": [
                  {
                    "type": "text",
                    "value": "How to configure TypeScript for custom commands, custom queries, assertions, and plugins"
                  }
                ]
              }
            ]
          },
          {
            "type": "listItem",
            "spread": false,
            "checked": null,
            "children": [
              {
                "type": "paragraph",
                "children": [
                  {
                    "type": "text",
                    "value": "How to use TypeScript with Cypress component testing"
                  }
                ]
              }
            ]
          },
          {
            "type": "listItem",
            "spread": false,
            "checked": null,
            "children": [
              {
                "type": "paragraph",
                "children": [
                  {
                    "type": "text",
                    "value": "How to avoid clashing types with Jest"
                  }
                ]
              }
            ]
          },
          {
            "type": "listItem",
            "spread": false,
            "checked": null,
            "children": [
              {
                "type": "paragraph",
                "children": [
                  {
                    "type": "text",
                    "value": "How to set up your development environment for TypeScript"
                  }
                ]
              }
            ]
          }
        ]
      },
      {
        "type": "paragraph",
        "children": [
          {
            "type": "text",
            "value": "Cypress ships with "
          },
          {
            "type": "link",
            "title": null,
            "url": "https://github.com/cypress-io/cypress/tree/develop/cli/types",
            "children": [
              {
                "type": "text",
                "value": "official type declarations"
              }
            ]
          },
          {
            "type": "text",
            "value": " for "
          },
          {
            "type": "link",
            "title": null,
            "url": "https://www.typescriptlang.org/",
            "children": [
              {
                "type": "text",
                "value": "TypeScript"
              }
            ]
          },
          {
            "type": "text",
            "value": ". This allows you to write your tests in TypeScript."
          }
        ]
      },
      {
        "type": "heading",
        "depth": 2,
        "children": [
          {
            "type": "text",
            "value": "Why TypeScript with Cypress?"
          }
        ]
      },
      {
        "type": "paragraph",
        "children": [
          {
            "type": "text",
            "value": "Writing Cypress tests in TypeScript gives your team a tight feedback loop that catches problems before a single browser opens — and long before a bug reaches production."
          }
        ]
      },
      {
        "type": "heading",
        "depth": 3,
        "children": [
          {
            "type": "text",
            "value": "Catch errors at the editor, not in CI"
          }
        ]
      },
      {
        "type": "paragraph",
        "children": [
          {
            "type": "text",
            "value": "TypeScript surfaces mismatched selectors, wrong argument types, and missing return values as red underlines in your editor the moment you type them. Without TypeScript, those same mistakes surface as a failing test run minutes or hours later — or worse, a bug reported by a user. Moving that feedback earlier eliminates a whole class of debugging cycles."
          }
        ]
      },
      {
        "type": "heading",
        "depth": 3,
        "children": [
          {
            "type": "text",
            "value": "IntelliSense makes the API self-documenting"
          }
        ]
      },
      {
        "type": "paragraph",
        "children": [
          {
            "type": "text",
            "value": "When your test file is TypeScript, your editor can autocomplete every `cy.*` command, show its accepted parameters, and display the inline JSDoc as you type. Your team spends less time reading reference docs and less time guessing whether the third argument is optional. For custom commands you expose to the rest of the team, typed declarations act as a lightweight contract: the name, parameters, and return type are machine-verified so callers always get correct usage."
          }
        ]
      },
      {
        "type": "heading",
        "depth": 3,
        "children": [
          {
            "type": "text",
            "value": "Safer refactoring across the codebase"
          }
        ]
      },
      {
        "type": "paragraph",
        "children": [
          {
            "type": "text",
            "value": "When a selector utility, a fixture type, or a page-object method changes, the TypeScript compiler points to every test that is now broken — across the entire project — before you run anything. On a large team, this makes refactoring a planned, predictable operation rather than a game of grep-and-hope."
          }
        ]
      },
      {
        "type": "heading",
        "depth": 3,
        "children": [
          {
            "type": "text",
            "value": "Lower cost of onboarding and review"
          }
        ]
      },
      {
        "type": "paragraph",
        "children": [
          {
            "type": "text",
            "value": "New engineers can explore the test suite with editor assistance rather than reading every helper file to understand what it does. Code reviewers can focus on intent rather than hunting for type mismatches. Both effects compound over time: less ramp-up cost, fewer back-and-forth review cycles, and a test suite that stays readable as it grows."
          }
        ]
      },
      {
        "type": "heading",
        "depth": 3,
        "children": [
          {
            "type": "text",
            "value": "Shared types between app code and tests"
          }
        ]
      },
      {
        "type": "paragraph",
        "children": [
          {
            "type": "text",
            "value": "Because your Cypress support files are plain TypeScript, they can import the same type definitions your application uses — API response shapes, domain models, enum values. A type change in the app propagates into the tests automatically, so your tests stay aligned with the code they exercise without manual synchronization."
          }
        ]
      },
      {
        "type": "heading",
        "depth": 2,
        "children": [
          {
            "type": "text",
            "value": "Get Started"
          }
        ]
      },
      {
        "type": "heading",
        "depth": 3,
        "children": [
          {
            "type": "text",
            "value": "Install TypeScript"
          }
        ]
      },
      {
        "type": "paragraph",
        "children": [
          {
            "type": "text",
            "value": "To use TypeScript with Cypress, you will need TypeScript 5.x, 6.x, or 7.x. If you do not already have TypeScript installed as a part of your framework, you will need to install it:"
          }
        ]
      },
      {
        "type": "list",
        "ordered": false,
        "start": null,
        "spread": false,
        "children": [
          {
            "type": "listItem",
            "spread": false,
            "checked": null,
            "children": [
              {
                "type": "paragraph",
                "children": [
                  {
                    "type": "text",
                    "value": "npm"
                  }
                ]
              }
            ]
          },
          {
            "type": "listItem",
            "spread": false,
            "checked": null,
            "children": [
              {
                "type": "paragraph",
                "children": [
                  {
                    "type": "text",
                    "value": "yarn"
                  }
                ]
              }
            ]
          },
          {
            "type": "listItem",
            "spread": false,
            "checked": null,
            "children": [
              {
                "type": "paragraph",
                "children": [
                  {
                    "type": "text",
                    "value": "pnpm"
                  }
                ]
              }
            ]
          },
          {
            "type": "listItem",
            "spread": false,
            "checked": null,
            "children": [
              {
                "type": "paragraph",
                "children": [
                  {
                    "type": "text",
                    "value": "bun"
                  }
                ]
              }
            ]
          }
        ]
      },
      {
        "type": "code",
        "lang": null,
        "meta": null,
        "value": "npm install typescript --save-dev"
      },
      {
        "type": "code",
        "lang": null,
        "meta": null,
        "value": "yarn add typescript --dev"
      },
      {
        "type": "code",
        "lang": null,
        "meta": null,
        "value": "pnpm add --save-dev typescript"
      },
      {
        "type": "code",
        "lang": null,
        "meta": null,
        "value": "bun add --dev typescript"
      },
      {
        "type": "heading",
        "depth": 3,
        "children": [
          {
            "type": "text",
            "value": "Configure tsconfig.json"
          }
        ]
      },
      {
        "type": "paragraph",
        "children": [
          {
            "type": "text",
            "value": "We recommend creating a "
          },
          {
            "type": "link",
            "title": null,
            "url": "http://www.typescriptlang.org/docs/handbook/tsconfig-json.html",
            "children": [
              {
                "type": "text",
                "value": "`tsconfig.json`"
              }
            ]
          },
          {
            "type": "text",
            "value": " inside your "
          },
          {
            "type": "link",
            "title": null,
            "url": "/llm/markdown/app/core-concepts/writing-and-organizing-tests.md#Project-structure",
            "children": [
              {
                "type": "text",
                "value": "`cypress` folder"
              }
            ]
          },
          {
            "type": "text",
            "value": " with the following configuration:"
          }
        ]
      },
      {
        "type": "paragraph",
        "children": [
          {
            "type": "text",
            "value": "tsconfig.json"
          }
        ]
      },
      {
        "type": "code",
        "lang": null,
        "meta": null,
        "value": "{  \"compilerOptions\": {    \"target\": \"es6\",    \"lib\": [\"es6\", \"dom\"],    \"sourceMap\": true,    \"types\": [\"cypress\", \"node\"]  },  \"include\": [\"**/*.ts\"]}"
      },
      {
        "type": "paragraph",
        "children": [
          {
            "type": "text",
            "value": "The `\"types\"` will tell the TypeScript compiler to only include type definitions from Cypress. This will address instances where the project also uses `@types/chai` or `@types/jquery`. Since "
          },
          {
            "type": "link",
            "title": null,
            "url": "/llm/markdown/app/references/bundled-libraries.md#Chai",
            "children": [
              {
                "type": "text",
                "value": "Chai"
              }
            ]
          },
          {
            "type": "text",
            "value": " and "
          },
          {
            "type": "link",
            "title": null,
            "url": "/llm/markdown/app/references/bundled-libraries.md#Utility-libraries",
            "children": [
              {
                "type": "text",
                "value": "jQuery"
              }
            ]
          },
          {
            "type": "text",
            "value": " are namespaces (globals), incompatible versions will cause the package manager (`yarn` or `npm`) to nest and include multiple definitions and cause conflicts."
          }
        ]
      },
      {
        "type": "paragraph",
        "children": [
          {
            "type": "text",
            "value": "You may have to restart your IDE's TypeScript server if the setup above does not appear to work. For example:"
          }
        ]
      },
      {
        "type": "paragraph",
        "children": [
          {
            "type": "text",
            "value": "VS Code (within a .ts or .js file):"
          }
        ]
      },
      {
        "type": "list",
        "ordered": false,
        "start": null,
        "spread": false,
        "children": [
          {
            "type": "listItem",
            "spread": false,
            "checked": null,
            "children": [
              {
                "type": "paragraph",
                "children": [
                  {
                    "type": "text",
                    "value": "Open the command palette (Mac: `cmd+shift+p`, Windows: `ctrl+shift+p`)"
                  }
                ]
              }
            ]
          },
          {
            "type": "listItem",
            "spread": false,
            "checked": null,
            "children": [
              {
                "type": "paragraph",
                "children": [
                  {
                    "type": "text",
                    "value": "Type \"restart ts\" and select the \"TypeScript: Restart TS server.\" option"
                  }
                ]
              }
            ]
          }
        ]
      },
      {
        "type": "paragraph",
        "children": [
          {
            "type": "text",
            "value": "If that does not work, try restarting the IDE."
          }
        ]
      },
      {
        "type": "heading",
        "depth": 3,
        "children": [
          {
            "type": "text",
            "value": "Processing your Cypress configuration and plugins"
          }
        ]
      },
      {
        "type": "paragraph",
        "children": [
          {
            "type": "text",
            "value": "Cypress supports TypeScript configuration files with `.ts`, `.mts`, and `.cts` extensions. Under the hood, Cypress uses "
          },
          {
            "type": "link",
            "title": null,
            "url": "https://tsx.is/",
            "children": [
              {
                "type": "text",
                "value": "tsx"
              }
            ]
          },
          {
            "type": "text",
            "value": " to transpile and run them inside the Cypress runtime without being bound to limitations of Node or other loaders."
          }
        ]
      },
      {
        "type": "paragraph",
        "children": [
          {
            "type": "text",
            "value": "Whether a TypeScript config loads as ESM or CommonJS follows the same "
          },
          {
            "type": "link",
            "title": null,
            "url": "/llm/markdown/app/references/configuration.md#ESM-vs-CommonJS",
            "children": [
              {
                "type": "text",
                "value": "Node.js module rules"
              }
            ]
          },
          {
            "type": "text",
            "value": " as JavaScript configs. Use `.mts` and `.cts` the same way you would use `.mjs` and `.cjs` — to force ESM or CommonJS regardless of `package.json` `\"type\"`."
          }
        ]
      },
      {
        "type": "heading",
        "depth": 4,
        "children": [
          {
            "type": "text",
            "value": "Align `tsconfig.json` with your module format"
          }
        ]
      },
      {
        "type": "paragraph",
        "children": [
          {
            "type": "text",
            "value": "Cypress does not use `compilerOptions.module` when deciding how to load your config — that comes from the file extension and nearest `package.json` `\"type\"`. Your `tsconfig.json` should still align so TypeScript and your editor match how Cypress runs the file:"
          }
        ]
      },
      {
        "type": "paragraph",
        "children": [
          {
            "type": "text",
            "value": "CommonJS — set `compilerOptions.module` to `\"commonjs\"`, then either:"
          }
        ]
      },
      {
        "type": "list",
        "ordered": false,
        "start": null,
        "spread": false,
        "children": [
          {
            "type": "listItem",
            "spread": false,
            "checked": null,
            "children": [
              {
                "type": "paragraph",
                "children": [
                  {
                    "type": "text",
                    "value": "name the config `cypress.config.cts`, or"
                  }
                ]
              }
            ]
          },
          {
            "type": "listItem",
            "spread": false,
            "checked": null,
            "children": [
              {
                "type": "paragraph",
                "children": [
                  {
                    "type": "text",
                    "value": "use `cypress.config.ts` with `package.json` `\"type\"` omitted or set to `\"commonjs\"`"
                  }
                ]
              }
            ]
          }
        ]
      },
      {
        "type": "paragraph",
        "children": [
          {
            "type": "text",
            "value": "ESM — set `compilerOptions.module` to an ESM-compatible option (for example `\"NodeNext\"` or `\"ES2022\"`), then either:"
          }
        ]
      },
      {
        "type": "list",
        "ordered": false,
        "start": null,
        "spread": false,
        "children": [
          {
            "type": "listItem",
            "spread": false,
            "checked": null,
            "children": [
              {
                "type": "paragraph",
                "children": [
                  {
                    "type": "text",
                    "value": "set `package.json` `\"type\"` to `\"module\"` and use `cypress.config.ts`, or"
                  }
                ]
              }
            ]
          },
          {
            "type": "listItem",
            "spread": false,
            "checked": null,
            "children": [
              {
                "type": "paragraph",
                "children": [
                  {
                    "type": "text",
                    "value": "name the config `cypress.config.mts`"
                  }
                ]
              }
            ]
          }
        ]
      },
      {
        "type": "paragraph",
        "children": [
          {
            "type": "text",
            "value": "`import` and `export` syntax in a `.ts` config does not by itself mean the file loads as ESM. With `compilerOptions.module` set to `\"commonjs\"`, TypeScript transpiles those statements to `require()` and `module.exports` — so you can use `import` in a config that Cypress loads as CommonJS. What matters is the alignment between `compilerOptions.module`, your config file extension, and `package.json` `\"type\"`."
          }
        ]
      },
      {
        "type": "heading",
        "depth": 2,
        "children": [
          {
            "type": "text",
            "value": "Extending TypeScript Support"
          }
        ]
      },
      {
        "type": "heading",
        "depth": 3,
        "children": [
          {
            "type": "text",
            "value": "Types for Custom Commands"
          }
        ]
      },
      {
        "type": "paragraph",
        "children": [
          {
            "type": "text",
            "value": "When adding "
          },
          {
            "type": "link",
            "title": null,
            "url": "/llm/markdown/api/cypress-api/custom-commands.md",
            "children": [
              {
                "type": "text",
                "value": "custom commands"
              }
            ]
          },
          {
            "type": "text",
            "value": " to the `cy` object, you can manually add their types to avoid TypeScript errors."
          }
        ]
      },
      {
        "type": "paragraph",
        "children": [
          {
            "type": "text",
            "value": "For example, if you add the command `cy.dataCy` to `cypress/support/commands.ts` (which is imported by your "
          },
          {
            "type": "link",
            "title": null,
            "url": "/llm/markdown/app/references/configuration.md#Testing-Type-Specific-Options",
            "children": [
              {
                "type": "text",
                "value": "support entry file"
              }
            ]
          },
          {
            "type": "text",
            "value": " `cypress/support/e2e.ts`) like this:"
          }
        ]
      },
      {
        "type": "paragraph",
        "children": [
          {
            "type": "text",
            "value": "cypress/support/commands.ts"
          }
        ]
      },
      {
        "type": "code",
        "lang": null,
        "meta": null,
        "value": "Cypress.Commands.add('dataCy', (value) => {  return cy.get(`[data-cy=${value}]`)})"
      },
      {
        "type": "paragraph",
        "children": [
          {
            "type": "text",
            "value": "Then you can add the `dataCy` command to the global Cypress Chainable interface (so called because commands are chained together)."
          }
        ]
      },
      {
        "type": "paragraph",
        "children": [
          {
            "type": "text",
            "value": "cypress/support/commands.ts"
          }
        ]
      },
      {
        "type": "code",
        "lang": null,
        "meta": null,
        "value": "declare global {  namespace Cypress {    interface Chainable {      /**       * Custom command to select DOM element by data-cy attribute.       * @example cy.dataCy('greeting')       */      dataCy(value: string): Chainable<JQuery<HTMLElement>>    }  }}"
      },
      {
        "type": "heading",
        "depth": 4,
        "children": [
          {
            "type": "text",
            "value": "`declare global` requires a TypeScript module file"
          }
        ]
      },
      {
        "type": "paragraph",
        "children": [
          {
            "type": "text",
            "value": "TypeScript distinguishes between two kinds of files:"
          }
        ]
      },
      {
        "type": "list",
        "ordered": false,
        "start": null,
        "spread": false,
        "children": [
          {
            "type": "listItem",
            "spread": false,
            "checked": null,
            "children": [
              {
                "type": "paragraph",
                "children": [
                  {
                    "type": "text",
                    "value": "Module — any file with at least one top-level `import` or `export` statement"
                  }
                ]
              }
            ]
          },
          {
            "type": "listItem",
            "spread": false,
            "checked": null,
            "children": [
              {
                "type": "paragraph",
                "children": [
                  {
                    "type": "text",
                    "value": "Script (ambient) — a file with no imports or exports"
                  }
                ]
              }
            ]
          }
        ]
      },
      {
        "type": "paragraph",
        "children": [
          {
            "type": "text",
            "value": "`declare global { ... }` is only valid inside a module file. If your `commands.ts` has no imports, TypeScript will raise an error such as: \"Augmentations for the global scope can only be directly nested in external modules or ambient module declarations.\""
          }
        ]
      },
      {
        "type": "paragraph",
        "children": [
          {
            "type": "text",
            "value": "The simplest fix is to add `export {}` at the bottom of the file so TypeScript treats it as a module:"
          }
        ]
      },
      {
        "type": "paragraph",
        "children": [
          {
            "type": "text",
            "value": "cypress/support/commands.ts"
          }
        ]
      },
      {
        "type": "code",
        "lang": null,
        "meta": null,
        "value": "declare global {  namespace Cypress {    interface Chainable {      dataCy(value: string): Chainable<JQuery<HTMLElement>>    }  }}export {} // turns this file into a module so declare global is valid"
      },
      {
        "type": "paragraph",
        "children": [
          {
            "type": "text",
            "value": "Alternatively, move your type declarations into a standalone "
          },
          {
            "type": "link",
            "title": null,
            "url": "#Using-an-External-Typings-File",
            "children": [
              {
                "type": "text",
                "value": "external typings file"
              }
            ]
          },
          {
            "type": "text",
            "value": " where no `import` or `export` is needed."
          }
        ]
      },
      {
        "type": "paragraph",
        "children": [
          {
            "type": "text",
            "value": "Conversely, if you use `declare namespace Cypress { ... }` without the `declare global` wrapper inside a file that does have imports, TypeScript will not augment the global `Cypress` namespace — your custom commands will still appear as unknown."
          }
        ]
      },
      {
        "type": "paragraph",
        "children": [
          {
            "type": "text",
            "value": "A nice detailed JSDoc comment above the method type will be really appreciated by any users of your custom command."
          }
        ]
      },
      {
        "type": "paragraph",
        "children": [
          {
            "type": "text",
            "value": "Types of all the parameters taken by the implementation callback are inferred automatically based on the declared interface. Thus, in the example above, the `value` will be of type `string` implicitly."
          }
        ]
      },
      {
        "type": "paragraph",
        "children": [
          {
            "type": "text",
            "value": "In your specs, you can now use the custom command as expected"
          }
        ]
      },
      {
        "type": "list",
        "ordered": false,
        "start": null,
        "spread": false,
        "children": [
          {
            "type": "listItem",
            "spread": false,
            "checked": null,
            "children": [
              {
                "type": "paragraph",
                "children": [
                  {
                    "type": "text",
                    "value": "End-to-End Test"
                  }
                ]
              }
            ]
          },
          {
            "type": "listItem",
            "spread": false,
            "checked": null,
            "children": [
              {
                "type": "paragraph",
                "children": [
                  {
                    "type": "text",
                    "value": "Component Test"
                  }
                ]
              }
            ]
          }
        ]
      },
      {
        "type": "code",
        "lang": null,
        "meta": null,
        "value": "it('works', () => {  // from your cypress/e2e/spec.cy.ts  cy.visit('/')  // IntelliSense and TS compiler should  // not complain about unknown method  cy.dataCy('greeting')})"
      },
      {
        "type": "code",
        "lang": null,
        "meta": null,
        "value": "it('works', () => {  // from your src/components/MyComponent.cy.ts  cy.mount(<MyComponent />)  // IntelliSense and TS compiler should  // not complain about unknown method  cy.dataCy('greeting')})"
      },
      {
        "type": "heading",
        "depth": 4,
        "children": [
          {
            "type": "text",
            "value": "Adding child or dual commands"
          }
        ]
      },
      {
        "type": "paragraph",
        "children": [
          {
            "type": "text",
            "value": "When you add a custom command with `prevSubject`, Cypress will infer the subject type automatically based on the specified `prevSubject`."
          }
        ]
      },
      {
        "type": "paragraph",
        "children": [
          {
            "type": "text",
            "value": "cypress/support/commands.ts"
          }
        ]
      },
      {
        "type": "code",
        "lang": null,
        "meta": null,
        "value": "declare global {  namespace Cypress {    interface Chainable {      /**       * Custom command to type a few random words into input elements       * @param count=3       * @example cy.get('input').typeRandomWords()       */      typeRandomWords(        count?: number,        options?: Partial<TypeOptions>      ): Chainable<JQuery<HTMLElement>>    }  }}"
      },
      {
        "type": "paragraph",
        "children": [
          {
            "type": "text",
            "value": "cypress/support/commands.ts"
          }
        ]
      },
      {
        "type": "code",
        "lang": null,
        "meta": null,
        "value": "Cypress.Commands.add(  'typeRandomWords',  { prevSubject: 'element' },  (subject /* :JQuery<HTMLElement> */, count = 3, options?) => {    return cy.wrap(subject).type(generateRandomWords(count), options)  })"
      },
      {
        "type": "heading",
        "depth": 4,
        "children": [
          {
            "type": "text",
            "value": "Overwriting child or dual commands"
          }
        ]
      },
      {
        "type": "paragraph",
        "children": [
          {
            "type": "text",
            "value": "When overwriting either built-in or custom commands which make use of `prevSubject`, you must specify generic parameters to help the type-checker to understand the type of the `prevSubject`."
          }
        ]
      },
      {
        "type": "paragraph",
        "children": [
          {
            "type": "text",
            "value": "cypress/support/commands.ts"
          }
        ]
      },
      {
        "type": "code",
        "lang": null,
        "meta": null,
        "value": "interface TypeOptions extends Cypress.TypeOptions {  sensitive: boolean}Cypress.Commands.overwrite<'type', 'element'>(  'type',  (originalFn, element, text, options?: Partial<TypeOptions>) => {    if (options && options.sensitive) {      // turn off original log      options.log = false      // create our own log with masked message      Cypress.log({        $el: element,        name: 'type',        message: '*'.repeat(text.length),      })    }    return originalFn(element, text, options)  })"
      },
      {
        "type": "paragraph",
        "children": [
          {
            "type": "text",
            "value": "As you can see there are generic parameters `<'type', 'element'>` are used:"
          }
        ]
      },
      {
        "type": "list",
        "ordered": true,
        "start": 1,
        "spread": false,
        "children": [
          {
            "type": "listItem",
            "spread": false,
            "checked": null,
            "children": [
              {
                "type": "paragraph",
                "children": [
                  {
                    "type": "text",
                    "value": "The first parameter is the command name, equal to first parameter passed to `Cypress.Commands.overwrite`."
                  }
                ]
              }
            ]
          },
          {
            "type": "listItem",
            "spread": false,
            "checked": null,
            "children": [
              {
                "type": "paragraph",
                "children": [
                  {
                    "type": "text",
                    "value": "The second parameter is the type of the `prevSubject` that is used by the original command. Possible values:"
                  }
                ]
              },
              {
                "type": "list",
                "ordered": false,
                "start": null,
                "spread": false,
                "children": [
                  {
                    "type": "listItem",
                    "spread": false,
                    "checked": null,
                    "children": [
                      {
                        "type": "paragraph",
                        "children": [
                          {
                            "type": "text",
                            "value": "'element' infers it as `JQuery<HTMLElement>`"
                          }
                        ]
                      }
                    ]
                  },
                  {
                    "type": "listItem",
                    "spread": false,
                    "checked": null,
                    "children": [
                      {
                        "type": "paragraph",
                        "children": [
                          {
                            "type": "text",
                            "value": "'window' infers it as `Window`"
                          }
                        ]
                      }
                    ]
                  },
                  {
                    "type": "listItem",
                    "spread": false,
                    "checked": null,
                    "children": [
                      {
                        "type": "paragraph",
                        "children": [
                          {
                            "type": "text",
                            "value": "'document' infers it as `Document`"
                          }
                        ]
                      }
                    ]
                  },
                  {
                    "type": "listItem",
                    "spread": false,
                    "checked": null,
                    "children": [
                      {
                        "type": "paragraph",
                        "children": [
                          {
                            "type": "text",
                            "value": "'optional' infers it as `unknown`"
                          }
                        ]
                      }
                    ]
                  }
                ]
              }
            ]
          }
        ]
      },
      {
        "type": "heading",
        "depth": 4,
        "children": [
          {
            "type": "text",
            "value": "Examples:"
          }
        ]
      },
      {
        "type": "list",
        "ordered": false,
        "start": null,
        "spread": false,
        "children": [
          {
            "type": "listItem",
            "spread": false,
            "checked": null,
            "children": [
              {
                "type": "paragraph",
                "children": [
                  {
                    "type": "text",
                    "value": "See "
                  },
                  {
                    "type": "link",
                    "title": null,
                    "url": "https://github.com/cypress-io/cypress-example-recipes#fundamentals",
                    "children": [
                      {
                        "type": "text",
                        "value": "Adding Custom Commands (TS)"
                      }
                    ]
                  },
                  {
                    "type": "text",
                    "value": " example recipe."
                  }
                ]
              }
            ]
          }
        ]
      },
      {
        "type": "heading",
        "depth": 3,
        "children": [
          {
            "type": "text",
            "value": "Types for Custom Queries"
          }
        ]
      },
      {
        "type": "paragraph",
        "children": [
          {
            "type": "text",
            "value": "When adding "
          },
          {
            "type": "link",
            "title": null,
            "url": "/llm/markdown/api/cypress-api/custom-queries.md",
            "children": [
              {
                "type": "text",
                "value": "custom queries"
              }
            ]
          },
          {
            "type": "text",
            "value": " with `Cypress.Commands.addQuery()`, you must declare the query on the `Chainable` interface before registering it. Cypress infers the query callback's argument types from that declaration."
          }
        ]
      },
      {
        "type": "paragraph",
        "children": [
          {
            "type": "text",
            "value": "Unlike custom commands, query callbacks receive `this` as a `Cypress.Command` (not `Mocha.Context`), and the callback must return an inner function that performs the query synchronously."
          }
        ]
      },
      {
        "type": "paragraph",
        "children": [
          {
            "type": "text",
            "value": "cypress/support/commands.ts"
          }
        ]
      },
      {
        "type": "code",
        "lang": null,
        "meta": null,
        "value": "declare global {  namespace Cypress {    interface Chainable {      /**       * Gets the currently focused DOM element.       * @example cy.focused2()       */      focused2(        options?: Partial<Cypress.Loggable & Cypress.Timeoutable>      ): Chainable<JQuery>    }    // Required so this.set('timeout', ...) type-checks in query callbacks    interface EnqueuedCommandAttributes {      timeout?: number    }  }}Cypress.Commands.addQuery(  'focused2',  function focused2(    options: Partial<Cypress.Loggable & Cypress.Timeoutable> = {}  ) {    const log =      options.log !== false &&      Cypress.log({        ...(options.timeout !== undefined && { timeout: options.timeout }),      })    this.set('timeout', options.timeout)    return () => {      let $el = cy.getFocused()      // ...      return $el    }  })"
      },
      {
        "type": "paragraph",
        "children": [
          {
            "type": "text",
            "value": "When passing optional `timeout` to `Cypress.log()`, avoid writing `{ timeout: options.timeout }` directly if `options.timeout` may be `undefined`. With strict TypeScript settings such as `exactOptionalPropertyTypes`, explicitly passing `undefined` is not assignable to an optional property. Use a conditional spread instead, as shown above."
          }
        ]
      },
      {
        "type": "paragraph",
        "children": [
          {
            "type": "text",
            "value": "For queries that accept additional options, combine the relevant Cypress option interfaces with `Partial<>`, matching how built-in queries are typed. For example, a query with timeout and shadow DOM support might use `Partial<Cypress.Loggable & Cypress.Timeoutable & Cypress.Shadow>`."
          }
        ]
      },
      {
        "type": "paragraph",
        "children": [
          {
            "type": "text",
            "value": "To overwrite an existing query, declare the query on `Chainable` as usual and use `Cypress.Commands.overwriteQuery()`. The first argument to your callback is the original query function:"
          }
        ]
      },
      {
        "type": "paragraph",
        "children": [
          {
            "type": "text",
            "value": "cypress/support/commands.ts"
          }
        ]
      },
      {
        "type": "code",
        "lang": null,
        "meta": null,
        "value": "declare global {  namespace Cypress {    interface Chainable {      get(        selector: string,        options?: Partial<Cypress.Loggable & Cypress.Timeoutable>      ): Chainable<JQuery<HTMLElement>>    }  }}Cypress.Commands.overwriteQuery('get', function (originalFn, ...args) {  return originalFn.apply(this, args)})"
      },
      {
        "type": "heading",
        "depth": 3,
        "children": [
          {
            "type": "text",
            "value": "Types for custom window properties"
          }
        ]
      },
      {
        "type": "paragraph",
        "children": [
          {
            "type": "link",
            "title": null,
            "url": "/llm/markdown/api/commands/window.md",
            "children": [
              {
                "type": "text",
                "value": "`cy.window()`"
              }
            ]
          },
          {
            "type": "text",
            "value": " yields an `AUTWindow` object, which is typed as `Window & typeof globalThis & Cypress.ApplicationWindow`. The `Cypress.ApplicationWindow` interface is an empty extension point that you can augment to tell TypeScript about properties your application adds to `window`."
          }
        ]
      },
      {
        "type": "paragraph",
        "children": [
          {
            "type": "text",
            "value": "Extend the interface in your support file or a `*.d.ts` file:"
          }
        ]
      },
      {
        "type": "paragraph",
        "children": [
          {
            "type": "text",
            "value": "cypress/support/e2e.ts"
          }
        ]
      },
      {
        "type": "code",
        "lang": null,
        "meta": null,
        "value": "declare global {  namespace Cypress {    interface ApplicationWindow {      // add the properties your app sets on window      env: {        DISABLE: boolean      }    }  }}"
      },
      {
        "type": "paragraph",
        "children": [
          {
            "type": "text",
            "value": "TypeScript will now recognize those properties inside `cy.window()` callbacks:"
          }
        ]
      },
      {
        "type": "code",
        "lang": null,
        "meta": null,
        "value": "cy.window().then((win) => {  win.env.DISABLE = true // no TypeScript error})"
      },
      {
        "type": "heading",
        "depth": 3,
        "children": [
          {
            "type": "text",
            "value": "Types for custom assertions"
          }
        ]
      },
      {
        "type": "paragraph",
        "children": [
          {
            "type": "text",
            "value": "If you extend Cypress assertions, you can extend the assertion types to make the TypeScript compiler understand the new methods. See the "
          },
          {
            "type": "link",
            "title": null,
            "url": "/llm/markdown/app/references/recipes.md#Fundamentals",
            "children": [
              {
                "type": "text",
                "value": "Recipe: Adding Chai Assertions"
              }
            ]
          },
          {
            "type": "text",
            "value": " for instructions."
          }
        ]
      },
      {
        "type": "heading",
        "depth": 3,
        "children": [
          {
            "type": "text",
            "value": "Types for plugins"
          }
        ]
      },
      {
        "type": "paragraph",
        "children": [
          {
            "type": "text",
            "value": "When using "
          },
          {
            "type": "link",
            "title": null,
            "url": "/llm/markdown/app/references/configuration.md",
            "children": [
              {
                "type": "text",
                "value": "`defineConfig`"
              }
            ]
          },
          {
            "type": "text",
            "value": " in your `cypress.config.ts` file, TypeScript types for "
          },
          {
            "type": "link",
            "title": null,
            "url": "/llm/markdown/app/references/configuration.md#setupNodeEvents",
            "children": [
              {
                "type": "text",
                "value": "`setupNodeEvents`"
              }
            ]
          },
          {
            "type": "text",
            "value": " are inferred automatically — no additional annotation is needed:"
          }
        ]
      },
      {
        "type": "paragraph",
        "children": [
          {
            "type": "text",
            "value": "cypress.config.ts"
          }
        ]
      },
      {
        "type": "code",
        "lang": null,
        "meta": null,
        "value": "import { defineConfig } from 'cypress'export default defineConfig({  e2e: {    setupNodeEvents(on, config) {      // implement node event listeners here    },  },})"
      },
      {
        "type": "paragraph",
        "children": [
          {
            "type": "text",
            "value": "If you extract your plugin setup into a separate function or file, you can annotate it with the `Cypress.PluginConfig` type:"
          }
        ]
      },
      {
        "type": "paragraph",
        "children": [
          {
            "type": "text",
            "value": "cypress/plugins/index.ts"
          }
        ]
      },
      {
        "type": "code",
        "lang": null,
        "meta": null,
        "value": "const setupNodeEvents: Cypress.PluginConfig = (on, config) => {  // implement node event listeners here}export default setupNodeEvents"
      },
      {
        "type": "heading",
        "depth": 3,
        "children": [
          {
            "type": "text",
            "value": "Using an External Typings File"
          }
        ]
      },
      {
        "type": "paragraph",
        "children": [
          {
            "type": "text",
            "value": "You might find it easier to organize your types by moving them from the support file into an external "
          },
          {
            "type": "link",
            "title": null,
            "url": "https://www.typescriptlang.org/docs/handbook/declaration-files/introduction.html",
            "children": [
              {
                "type": "text",
                "value": "declaration (*.d.ts) file"
              }
            ]
          },
          {
            "type": "text",
            "value": ". To do so, create a new file, like cypress.d.ts, and cut the types for your custom commands/assertions from the support file and into the new file."
          }
        ]
      },
      {
        "type": "heading",
        "depth": 4,
        "children": [
          {
            "type": "text",
            "value": "Ambient declaration file (no imports needed)"
          }
        ]
      },
      {
        "type": "paragraph",
        "children": [
          {
            "type": "text",
            "value": "A plain `.d.ts` file with no `import` or `export` statements is treated by TypeScript as an ambient script. In this context you can declare the namespace directly — the `declare global` wrapper is not required:"
          }
        ]
      },
      {
        "type": "list",
        "ordered": false,
        "start": null,
        "spread": false,
        "children": [
          {
            "type": "listItem",
            "spread": false,
            "checked": null,
            "children": [
              {
                "type": "paragraph",
                "children": [
                  {
                    "type": "text",
                    "value": "cypress/support/commands.d.ts"
                  }
                ]
              }
            ]
          }
        ]
      },
      {
        "type": "code",
        "lang": null,
        "meta": null,
        "value": "// No imports — TypeScript treats this as an ambient declaration file.// Declare the namespace directly (no declare global wrapper needed).declare namespace Cypress {  interface Chainable {    /**     * Custom command to select DOM element by data-cy attribute.     * @example cy.dataCy('greeting')     */    dataCy(value: string): Chainable<JQuery<HTMLElement>>  }}"
      },
      {
        "type": "paragraph",
        "children": [
          {
            "type": "text",
            "value": "If TypeScript does not resolve Cypress types automatically (for example when the `types` field in your `tsconfig.json` does not include `\"cypress\"`), add a triple-slash reference at the top of the declaration file:"
          }
        ]
      },
      {
        "type": "code",
        "lang": null,
        "meta": null,
        "value": "/// <reference types=\"cypress\" />"
      },
      {
        "type": "heading",
        "depth": 4,
        "children": [
          {
            "type": "text",
            "value": "File with imports (e.g. `cy.mount`)"
          }
        ]
      },
      {
        "type": "paragraph",
        "children": [
          {
            "type": "text",
            "value": "When the declaration file imports something — such as `cy.mount` for component testing — the `import` turns it into a TypeScript module and `declare global` is required:"
          }
        ]
      },
      {
        "type": "list",
        "ordered": false,
        "start": null,
        "spread": false,
        "children": [
          {
            "type": "listItem",
            "spread": false,
            "checked": null,
            "children": [
              {
                "type": "paragraph",
                "children": [
                  {
                    "type": "text",
                    "value": "cypress.d.ts"
                  }
                ]
              }
            ]
          }
        ]
      },
      {
        "type": "code",
        "lang": null,
        "meta": null,
        "value": "import { mount } from 'cypress/react'// Augment the Cypress namespace to include type definitions for// your custom command.// Alternatively, can be defined in cypress/support/component.d.ts// with a <reference path=\"./component\" /> at the top of your spec.declare global {  namespace Cypress {    interface Chainable {      mount: typeof mount    }  }}"
      },
      {
        "type": "paragraph",
        "children": [
          {
            "type": "text",
            "value": "You might need to include the *.d.ts in the include options in any tsconfig.json files in your project for TypeScript to pick up the new types:"
          }
        ]
      },
      {
        "type": "list",
        "ordered": false,
        "start": null,
        "spread": false,
        "children": [
          {
            "type": "listItem",
            "spread": false,
            "checked": null,
            "children": [
              {
                "type": "paragraph",
                "children": [
                  {
                    "type": "text",
                    "value": "tsconfig.json"
                  }
                ]
              }
            ]
          }
        ]
      },
      {
        "type": "code",
        "lang": null,
        "meta": null,
        "value": "\"include\": [  \"src\",  \"./cypress.d.ts\"]"
      },
      {
        "type": "list",
        "ordered": false,
        "start": null,
        "spread": false,
        "children": [
          {
            "type": "listItem",
            "spread": false,
            "checked": null,
            "children": [
              {
                "type": "paragraph",
                "children": [
                  {
                    "type": "text",
                    "value": "./cypress/tsconfig.json"
                  }
                ]
              }
            ]
          }
        ]
      },
      {
        "type": "code",
        "lang": null,
        "meta": null,
        "value": "\"include\": [  \"**/*.ts\",  \"../cypress.d.ts\"]"
      },
      {
        "type": "paragraph",
        "children": [
          {
            "type": "text",
            "value": "TypeScript must be able to find the declaration file"
          }
        ]
      },
      {
        "type": "paragraph",
        "children": [
          {
            "type": "text",
            "value": "If you rename or move a declaration file, verify that its path is covered by the `include` globs in every `tsconfig.json` that needs to see it. A common mistake is placing a `global.d.ts` inside `cypress/support/` while the `cypress/tsconfig.json` only includes `**/*.ts` — `.d.ts` files are matched by `**/*.ts` only if the glob is `**/*.{ts,d.ts}` or simply `**/*`. Safest practice: list the file explicitly or use `\"include\": [\"**/*.ts\", \"**/*.d.ts\"]`."
          }
        ]
      },
      {
        "type": "heading",
        "depth": 3,
        "children": [
          {
            "type": "text",
            "value": "Set up your dev environment"
          }
        ]
      },
      {
        "type": "paragraph",
        "children": [
          {
            "type": "text",
            "value": "Please refer to your code editor in "
          },
          {
            "type": "link",
            "title": null,
            "url": "https://github.com/Microsoft/TypeScript/wiki/TypeScript-Editor-Support",
            "children": [
              {
                "type": "text",
                "value": "TypeScript's Editor Support doc"
              }
            ]
          },
          {
            "type": "text",
            "value": " and follow the instructions for your IDE to get TypeScript support and "
          },
          {
            "type": "link",
            "title": null,
            "url": "/llm/markdown/app/tooling/IDE-integration.md#Intelligent-Code-Completion",
            "children": [
              {
                "type": "text",
                "value": "intelligent code completion"
              }
            ]
          },
          {
            "type": "text",
            "value": " configured in your developer environment before continuing. TypeScript support is built in for "
          },
          {
            "type": "link",
            "title": null,
            "url": "https://code.visualstudio.com/",
            "children": [
              {
                "type": "text",
                "value": "Visual Studio Code"
              }
            ]
          },
          {
            "type": "text",
            "value": ", "
          },
          {
            "type": "link",
            "title": null,
            "url": "https://www.visualstudio.com/",
            "children": [
              {
                "type": "text",
                "value": "Visual Studio"
              }
            ]
          },
          {
            "type": "text",
            "value": ", and "
          },
          {
            "type": "link",
            "title": null,
            "url": "https://www.jetbrains.com/webstorm/",
            "children": [
              {
                "type": "text",
                "value": "WebStorm"
              }
            ]
          },
          {
            "type": "text",
            "value": " - all other editors require extra setup."
          }
        ]
      },
      {
        "type": "heading",
        "depth": 3,
        "children": [
          {
            "type": "text",
            "value": "Clashing types with Jest"
          }
        ]
      },
      {
        "type": "paragraph",
        "children": [
          {
            "type": "text",
            "value": "If you are using both Jest and Cypress in the same project, the TypeScript types registered globally by the two test runners can clash. For example, both Jest and Cypress provide the clashing types for the `describe` and `it` functions. Both Jest and Expect (bundled inside Cypress) provide the clashing types for the `expect` assertion, etc."
          }
        ]
      },
      {
        "type": "paragraph",
        "children": [
          {
            "type": "text",
            "value": "The recommended solution is to use separate `tsconfig.json` files for your Jest tests and your Cypress tests."
          }
        ]
      },
      {
        "type": "paragraph",
        "children": [
          {
            "type": "text",
            "value": "Step 1: Create (or ensure you have) a `cypress/tsconfig.json` that explicitly limits types to only what Cypress needs:"
          }
        ]
      },
      {
        "type": "paragraph",
        "children": [
          {
            "type": "text",
            "value": "cypress/tsconfig.json"
          }
        ]
      },
      {
        "type": "code",
        "lang": null,
        "meta": null,
        "value": "{  \"compilerOptions\": {    \"target\": \"es6\",    \"lib\": [\"es6\", \"dom\"],    \"sourceMap\": true,    \"types\": [\"cypress\", \"node\"]  },  \"include\": [\"**/*.ts\"]}"
      },
      {
        "type": "paragraph",
        "children": [
          {
            "type": "text",
            "value": "Step 2: Exclude the `cypress` folder (and `cypress.config.ts`) from your root `tsconfig.json` so that Jest does not pick up Cypress global types:"
          }
        ]
      },
      {
        "type": "paragraph",
        "children": [
          {
            "type": "text",
            "value": "tsconfig.json"
          }
        ]
      },
      {
        "type": "code",
        "lang": null,
        "meta": null,
        "value": "{  \"exclude\": [\"cypress.config.ts\", \"cypress\", \"node_modules\"]}"
      },
      {
        "type": "paragraph",
        "children": [
          {
            "type": "text",
            "value": "With this setup, Jest uses the root `tsconfig.json` (without Cypress types) and Cypress uses its own `cypress/tsconfig.json` (with Cypress types), so the two sets of globals no longer interfere with each other."
          }
        ]
      },
      {
        "type": "heading",
        "depth": 2,
        "children": [
          {
            "type": "text",
            "value": "History"
          }
        ]
      },
      {
        "type": "table",
        "align": [
          null,
          null
        ],
        "children": [
          {
            "type": "tableRow",
            "children": [
              {
                "type": "tableCell",
                "children": [
                  {
                    "type": "text",
                    "value": "Version"
                  }
                ]
              },
              {
                "type": "tableCell",
                "children": [
                  {
                    "type": "text",
                    "value": "Changes"
                  }
                ]
              }
            ]
          },
          {
            "type": "tableRow",
            "children": [
              {
                "type": "tableCell",
                "children": [
                  {
                    "type": "link",
                    "title": null,
                    "url": "/llm/markdown/app/references/changelog.md#15-19-0",
                    "children": [
                      {
                        "type": "text",
                        "value": "15.19.0"
                      }
                    ]
                  }
                ]
              },
              {
                "type": "tableCell",
                "children": [
                  {
                    "type": "text",
                    "value": "Added support for TypeScript 7.0"
                  }
                ]
              }
            ]
          },
          {
            "type": "tableRow",
            "children": [
              {
                "type": "tableCell",
                "children": [
                  {
                    "type": "link",
                    "title": null,
                    "url": "/llm/markdown/app/references/changelog.md#15-14-0",
                    "children": [
                      {
                        "type": "text",
                        "value": "15.14.0"
                      }
                    ]
                  }
                ]
              },
              {
                "type": "tableCell",
                "children": [
                  {
                    "type": "text",
                    "value": "Added support for TypeScript 6.0"
                  }
                ]
              }
            ]
          },
          {
            "type": "tableRow",
            "children": [
              {
                "type": "tableCell",
                "children": [
                  {
                    "type": "link",
                    "title": null,
                    "url": "/llm/markdown/app/references/changelog.md#15-0-0",
                    "children": [
                      {
                        "type": "text",
                        "value": "15.0.0"
                      }
                    ]
                  }
                ]
              },
              {
                "type": "tableCell",
                "children": [
                  {
                    "type": "text",
                    "value": "Raised minimum required TypeScript version from 4.0+ to 5.0+ and replaced `ts-node` with `tsx` to parse and run the `cypress.config.ts` file."
                  }
                ]
              }
            ]
          },
          {
            "type": "tableRow",
            "children": [
              {
                "type": "tableCell",
                "children": [
                  {
                    "type": "link",
                    "title": null,
                    "url": "/llm/markdown/app/references/changelog.md#13-0-0",
                    "children": [
                      {
                        "type": "text",
                        "value": "13.0.0"
                      }
                    ]
                  }
                ]
              },
              {
                "type": "tableCell",
                "children": [
                  {
                    "type": "text",
                    "value": "Raised minimum required TypeScript version from 3.4+ to 4.0+"
                  }
                ]
              }
            ]
          },
          {
            "type": "tableRow",
            "children": [
              {
                "type": "tableCell",
                "children": [
                  {
                    "type": "link",
                    "title": null,
                    "url": "/llm/markdown/app/references/changelog.md#10-0-0",
                    "children": [
                      {
                        "type": "text",
                        "value": "10.0.0"
                      }
                    ]
                  }
                ]
              },
              {
                "type": "tableCell",
                "children": [
                  {
                    "type": "text",
                    "value": "Update guide to cover TypeScript setup for component testing"
                  }
                ]
              }
            ]
          },
          {
            "type": "tableRow",
            "children": [
              {
                "type": "tableCell",
                "children": [
                  {
                    "type": "link",
                    "title": null,
                    "url": "/llm/markdown/app/references/changelog.md#5-0-0",
                    "children": [
                      {
                        "type": "text",
                        "value": "5.0.0"
                      }
                    ]
                  }
                ]
              },
              {
                "type": "tableCell",
                "children": [
                  {
                    "type": "text",
                    "value": "Raised minimum required TypeScript version from 2.9+ to 3.4+"
                  }
                ]
              }
            ]
          },
          {
            "type": "tableRow",
            "children": [
              {
                "type": "tableCell",
                "children": [
                  {
                    "type": "link",
                    "title": null,
                    "url": "/llm/markdown/app/references/changelog.md#4-4-0",
                    "children": [
                      {
                        "type": "text",
                        "value": "4.4.0"
                      }
                    ]
                  }
                ]
              },
              {
                "type": "tableCell",
                "children": [
                  {
                    "type": "text",
                    "value": "Added support for TypeScript without needing your own transpilation through preprocessors."
                  }
                ]
              }
            ]
          }
        ]
      },
      {
        "type": "heading",
        "depth": 2,
        "children": [
          {
            "type": "text",
            "value": "See also"
          }
        ]
      },
      {
        "type": "list",
        "ordered": false,
        "start": null,
        "spread": false,
        "children": [
          {
            "type": "listItem",
            "spread": false,
            "checked": null,
            "children": [
              {
                "type": "paragraph",
                "children": [
                  {
                    "type": "link",
                    "title": null,
                    "url": "/llm/markdown/app/tooling/IDE-integration.md",
                    "children": [
                      {
                        "type": "text",
                        "value": "IDE Integration"
                      }
                    ]
                  }
                ]
              }
            ]
          }
        ]
      }
    ]
  },
  "token_estimate": 3747
}