Skip to content

Commit

Permalink
Document TypeScript tsconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
mauricedb committed Feb 14, 2021
1 parent 5551bc3 commit 6e19386
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,21 @@

Adds `cy.historyPush()` and `cy.historyReplace()` commands to the Cypress object to navigate using the React Router Dom history API. Both commands take the `path` and an optional `state` object as parameters.

## With TypeScript

Typings should be added as follows in tsconfig.json:

```json
{
"compilerOptions": {
"lib": ["es5", "dom"],
"target": "es5",
"types": ["cypress", "cypress-react-router"]
},
"include": ["**/*.ts"]
}
```

## Should you use this package?

If you are wondering if you should use this package the most likely answer is no.
Expand Down

0 comments on commit 6e19386

Please sign in to comment.