Skip to content

Commit

Permalink
refactor: remove unused types and update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
liuhuapiaoyuan committed Nov 16, 2024
1 parent 0a0ec8e commit 62e22b6
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 8 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
6 changes: 1 addition & 5 deletions packages/next-auth-oauth/src/core.ts
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
3 changes: 0 additions & 3 deletions packages/next-auth-oauth/src/type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ type CallbacksType = NonNullable<NextAuthConfig['callbacks']>
export type CallbackSignInFunction = NonNullable<CallbacksType['signIn']>
export type CallbackSessionInFunction = NonNullable<CallbacksType['session']>
export type CallbackJwtFunction = NonNullable<CallbacksType['jwt']>
type Tail<T extends unknown[]> = T extends [unknown, ...infer Rest]
? Rest
: never

export type { NextAuthConfig }

Expand Down
3 changes: 3 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 62e22b6

Please sign in to comment.