Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions docs/api/cypress-api/custom-commands.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -894,9 +894,7 @@ and unnecessary. Try to take as many shortcuts as possible.
#### 5. Write TypeScript definitions

You can describe the method signature for your custom command, allowing
IntelliSense to show helpful documentation. See the
[`cypress-example-todomvc`](https://github.com/cypress-io/cypress-example-todomvc#cypress-intellisense)
repository for a working example.
IntelliSense to show helpful documentation.

#### 6. Create a function that adds the custom command

Expand Down
4 changes: 0 additions & 4 deletions docs/app/tooling/IDE-integration.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -163,10 +163,6 @@ them in `cypress/support/index.d.ts` use:
/// <reference types="../support" />
```

See the
[`cypress-example-todomvc`](https://github.com/cypress-io/cypress-example-todomvc#cypress-intellisense)
repository for a working example.

If the triple slash directive does not work, please refer to your code editor in
[TypeScript's Editor Support doc](https://github.com/Microsoft/TypeScript/wiki/TypeScript-Editor-Support)
and follow the instructions for your IDE to get
Expand Down
3 changes: 0 additions & 3 deletions docs/app/tooling/typescript-support.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -246,9 +246,6 @@ As you can see there are generic parameters `<'type', 'element'>` are used:
- See
[Adding Custom Commands (TS)](https://github.com/cypress-io/cypress-example-recipes#fundamentals)
example recipe.
- Example project
[cypress-example-todomvc custom commands](https://github.com/cypress-io/cypress-example-todomvc#custom-commands)
uses custom commands to avoid boilerplate code.

### Types for custom assertions

Expand Down