diff --git a/package.json b/package.json index 6f34141..d48dd0a 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/types/index.d.ts b/types/index.d.ts index e69de29..0d0d708 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -0,0 +1,6 @@ +declare namespace Cypress { + interface Chainable { + login(): Chainable; + logout(): Chainable; + } +}