Skip to content

Commit

Permalink
fix: move router type definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielRivers committed Feb 23, 2024
1 parent 6d780de commit c8de4c6
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 c8de4c6

Please sign in to comment.