diff --git a/package.json b/package.json index 124718c..2520b7e 100644 --- a/package.json +++ b/package.json @@ -29,6 +29,7 @@ "license": "ISC", "devDependencies": { "@types/node": "^20", + "next": "15.0.3", "@commitlint/config-conventional": "^19.5.0", "commitlint": "^19.5.0", "prettier": "3.3.3", diff --git a/packages/next-auth-oauth/src/core.ts b/packages/next-auth-oauth/src/core.ts index 2973bf4..8874466 100644 --- a/packages/next-auth-oauth/src/core.ts +++ b/packages/next-auth-oauth/src/core.ts @@ -1,10 +1,6 @@ // 账号注册 -import NextAuth, { - type Account, - CredentialsSignin, - type NextAuthResult, -} from 'next-auth' +import NextAuth, { type Account, CredentialsSignin } from 'next-auth' import type { Adapter, AdapterUser } from 'next-auth/adapters' import type { OAuthProviderButtonStyles, Provider } from 'next-auth/providers' import credentials from 'next-auth/providers/credentials' diff --git a/packages/next-auth-oauth/src/type.ts b/packages/next-auth-oauth/src/type.ts index 383656f..8a36c7a 100644 --- a/packages/next-auth-oauth/src/type.ts +++ b/packages/next-auth-oauth/src/type.ts @@ -6,9 +6,6 @@ type CallbacksType = NonNullable export type CallbackSignInFunction = NonNullable export type CallbackSessionInFunction = NonNullable export type CallbackJwtFunction = NonNullable -type Tail = T extends [unknown, ...infer Rest] - ? Rest - : never export type { NextAuthConfig } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 908750c..450d528 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -23,6 +23,9 @@ importers: eslint-config-prettier: specifier: ^9.1.0 version: 9.1.0(eslint@8.57.1) + next: + specifier: 15.0.3 + version: 15.0.3(react-dom@19.0.0-rc-66855b96-20241106(react@19.0.0-rc-66855b96-20241106))(react@19.0.0-rc-66855b96-20241106) prettier: specifier: 3.3.3 version: 3.3.3