Skip to content

Commit

Permalink
Merge pull request #6 from marklawlor/master
Browse files Browse the repository at this point in the history
Add Typescript types
  • Loading branch information
sir-dunxalot authored Feb 19, 2021
2 parents dd47ddb + 672dac4 commit 16ba66b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "0.1.1",
"description": "Cypress commands to support Auth0 and Next.js.",
"main": "dist/cypress-nextjs-auth0.js",
"types": "types/index.d.ts",
"scripts": {
"build": "microbundle build -i src/index.js -f cjs -o dist",
"dev": "cd cypress/dummy && next",
Expand Down
6 changes: 6 additions & 0 deletions types/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
declare namespace Cypress {
interface Chainable<Subject = any> {
login(): Chainable<Element>;
logout(): Chainable<Element>;
}
}

0 comments on commit 16ba66b

Please sign in to comment.