From 5020bd2f2ef77285652cb4f5329459574df1b8c9 Mon Sep 17 00:00:00 2001 From: Mark Lawlor Date: Sun, 19 Jul 2020 12:31:58 +1000 Subject: [PATCH 1/3] Update index.d.ts Add Typescript types for login & logout --- types/index.d.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/types/index.d.ts b/types/index.d.ts index e69de29..0db4a0d 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -0,0 +1,6 @@ +declare namespace Cypress { + interface Chainable { + login(): Chainable; + logout(): Chainable; + } +} From 7c1e8a8dde84526410faa990f68d9c71ba69cfc4 Mon Sep 17 00:00:00 2001 From: Mark Lawlor Date: Sun, 19 Jul 2020 12:33:03 +1000 Subject: [PATCH 2/3] Add types to package.json --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index a3105c6..34568b3 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", From 672dac4de73202baf92f11eca6fa62b82ec0f649 Mon Sep 17 00:00:00 2001 From: Mark Lawlor Date: Wed, 29 Jul 2020 10:27:08 +1000 Subject: [PATCH 3/3] Update types to align more with Cypress --- types/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/index.d.ts b/types/index.d.ts index 0db4a0d..0d0d708 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -1,5 +1,5 @@ declare namespace Cypress { - interface Chainable { + interface Chainable { login(): Chainable; logout(): Chainable; }