Skip to content

Commit 7c422d0

Browse files
committed
chore: enable verbatimModuleSyntax in tsconfig
1 parent cd5d257 commit 7c422d0

39 files changed

Lines changed: 120 additions & 100 deletions

examples/erp/src/app/(admin)/_helper/server.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use server'
22

3-
import { handleServerFunction, ServerFunction } from '@kivotos/next'
3+
import { handleServerFunction, type ServerFunction } from '@kivotos/next'
44

55
import { serverConfig } from '~/drizzlify/config'
66

examples/erp/src/components/providers.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use client'
22

3-
import { PropsWithChildren } from 'react'
3+
import type { PropsWithChildren } from 'react'
44

55
import { ThemeProvider as NextThemesProvider } from 'next-themes'
66

internals/project-config/tsconfig/base.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
"preserveWatchOutput": true,
1717
"skipLibCheck": true,
1818
"strict": true,
19-
"resolveJsonModule": true
19+
"resolveJsonModule": true,
20+
"verbatimModuleSyntax": true
2021
},
2122
"exclude": ["node_modules"]
2223
}

packages/core/src/auth/context.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import { and, AnyTable, asc, Column, desc, eq } from 'drizzle-orm'
2-
import { UndefinedToOptional } from 'type-fest/source/internal'
1+
import { and, type AnyTable, asc, Column, desc, eq } from 'drizzle-orm'
2+
import type { UndefinedToOptional } from 'type-fest/source/internal'
33

4-
import { AnyAccountTable, AnySessionTable, AnyUserTable, AuthConfig } from '.'
4+
import type { AnyAccountTable, AnySessionTable, AnyUserTable, AuthConfig } from '.'
55
import { AccountProvider } from './constant'
66
import { getSessionCookie } from './utils'
77

8-
import { MinimalContext } from '../config'
8+
import type { MinimalContext } from '../config'
99

1010
type InferTableType<T extends AnyTable<{}>> = UndefinedToOptional<{
1111
[K in keyof T['_']['columns']]: T['_']['columns'][K]['_']['notNull'] extends true

packages/core/src/auth/handlers/forgot-password.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import z from 'zod'
22

3-
import { ApiRouteHandler, ApiRouteSchema, createEndpoint } from '../../endpoint'
4-
import { AuthContext } from '../context'
3+
import { type ApiRouteHandler, type ApiRouteSchema, createEndpoint } from '../../endpoint'
4+
import { type AuthContext } from '../context'
55

66
interface InternalRouteOptions {
77
prefix?: string

packages/core/src/auth/handlers/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { signInEmail } from './sign-in-email'
55
import { signOut } from './sign-out'
66
import { signUp } from './sign-up'
77

8-
import { AuthConfig } from '..'
8+
import type { AuthConfig } from '..'
99

1010
export function createAuthHandlers<TAuthConfig extends AuthConfig>(config: TAuthConfig) {
1111
const handlers = {

packages/core/src/auth/handlers/me.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import z from 'zod'
22

3-
import { ApiRouteHandler, ApiRouteSchema, createEndpoint } from '../../endpoint'
4-
import { AuthContext } from '../context'
3+
import { type ApiRouteHandler, type ApiRouteSchema, createEndpoint } from '../../endpoint'
4+
import { type AuthContext } from '../context'
55

66
interface InternalRouteOptions {
77
prefix?: string

packages/core/src/auth/handlers/reset-password.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import z from 'zod'
22

3-
import { ApiRouteHandler, ApiRouteSchema, createEndpoint } from '../../endpoint'
4-
import { AuthContext } from '../context'
3+
import { type ApiRouteHandler, type ApiRouteSchema, createEndpoint } from '../../endpoint'
4+
import { type AuthContext } from '../context'
55

66
interface InternalRouteOptions {
77
prefix?: string

packages/core/src/auth/handlers/sign-in-email.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import z from 'zod'
22

3-
import { ApiRouteHandler, ApiRouteSchema, createEndpoint } from '../../endpoint'
3+
import { type ApiRouteHandler, type ApiRouteSchema, createEndpoint } from '../../endpoint'
44
import { AccountProvider } from '../constant'
5-
import { AuthContext } from '../context'
5+
import { type AuthContext } from '../context'
66
import { setSessionCookie } from '../utils'
77

88
interface InternalRouteOptions {

packages/core/src/auth/handlers/sign-out.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import z from 'zod'
22

3-
import { ApiRouteHandler, ApiRouteSchema, createEndpoint } from '../../endpoint'
4-
import { AuthContext } from '../context'
3+
import { type ApiRouteHandler, type ApiRouteSchema, createEndpoint } from '../../endpoint'
4+
import { type AuthContext } from '../context'
55
import { deleteSessionCookie, getSessionCookie } from '../utils'
66

77
interface InternalRouteOptions {

0 commit comments

Comments
 (0)