Skip to content

Commit

Permalink
Merge pull request #130 from kinde-oss/fix/move-route-abstract-defini…
Browse files Browse the repository at this point in the history
…tions

fix: move router type definitions
  • Loading branch information
DaveOrDead authored Feb 26, 2024
2 parents 6d780de + c8de4c6 commit 06a5630
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions src/routerClients/RouterClient.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,24 @@
import {NextResponse} from 'next/server';

export default class RouterClient {
/** @type {import('../../types').KindeClient} */
kindeClient = null;
/** @type {URL} */
url;
/** @type {import('@kinde-oss/kinde-typescript-sdk').SessionManager} */
sessionManager;
/** @type {import('next').NextApiResponse | *} */
res;
/** @type {import('next').NextApiRequest | NextResponse | *} */
req;
/** @type {URLSearchParams} */
searchParams;

constructor() {
if (this.constructor == RouterClient) {
throw new Error("Abstract classes can't be instantiated.");
}
/** @type {import('../../types').KindeClient} */
this.kindeClient;
/** @type {URL} */
this.url;
/** @type {import('@kinde-oss/kinde-typescript-sdk').SessionManager} */
this.sessionManager;
/** @type {import('next').NextApiResponse | *} */
this.res;
/** @type {import('next').NextApiRequest | NextResponse | *} */
this.req;
/** @type {URLSearchParams} */
this.searchParams;
}
}

/**
*
Expand Down

0 comments on commit 06a5630

Please sign in to comment.