Skip to content

Commit

Permalink
type: imports
Browse files Browse the repository at this point in the history
  • Loading branch information
peterphanouvong committed Nov 13, 2023
1 parent 923ef1f commit edac647
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
3 changes: 1 addition & 2 deletions src/handlers/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import {setup} from './setup';
import {register} from './register';
import AppRouterClient from '../routerClients/AppRouterClient';
import PagesRouterClient from '../routerClients/PagesRouterClient';
import {NextRequest} from 'next/server';
import RouterClient from '../routerClients/RouterClient';

/**
Expand Down Expand Up @@ -56,7 +55,7 @@ export default (request, endpoint) => {

/**
*
* @param {NextRequest} req
* @param {import("next/server").NextRequest} req
* @param {{params: {kindeAuth: string}}} res
* @returns
*/
Expand Down
3 changes: 1 addition & 2 deletions src/routerClients/AppRouterClient.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import {createKindeServerClient} from '@kinde-oss/kinde-typescript-sdk';
import {cookies} from 'next/headers';
import {redirect} from 'next/navigation';
import {NextRequest} from 'next/server';
import {config} from '../config/index';
import {appRouterSessionManager} from '../session/sessionManager';
import RouterClient from './RouterClient';
Expand All @@ -10,7 +9,7 @@ import RouterClient from './RouterClient';
export default class AppRouterClient extends RouterClient {
/**
*
* @param {NextRequest} req
* @param {import("next/server").NextRequest} req
* @param {*} res
*/
constructor(req, res) {
Expand Down
5 changes: 1 addition & 4 deletions src/routerClients/RouterClient.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
import {GrantType} from '@kinde-oss/kinde-typescript-sdk';
import {NextResponse} from 'next/server';

export default class RouterClient {
constructor() {
if (this.constructor == RouterClient) {
Expand All @@ -14,7 +11,7 @@ export default class RouterClient {
this.sessionManager;
/** @type {import('next').NextApiResponse | *} */
this.res;
/** @type {import('next').NextApiRequest | NextResponse | *} */
/** @type {import('next').NextApiRequest | import('next/server').NextResponse | *} */
this.req;
/** @type {URLSearchParams} */
this.searchParams;
Expand Down

0 comments on commit edac647

Please sign in to comment.