diff --git a/src/index.d.ts b/src/index.d.ts index 5fb83ac..6714757 100644 --- a/src/index.d.ts +++ b/src/index.d.ts @@ -1,7 +1,7 @@ import type { SanctumModuleOptions, SanctumGlobalMiddlewarePageMeta, -} from './types'; +} from './runtime/types'; declare module 'nuxt/schema' { interface PublicRuntimeConfig { diff --git a/src/module.ts b/src/module.ts index 20112a7..e4cda80 100644 --- a/src/module.ts +++ b/src/module.ts @@ -7,7 +7,7 @@ import { useLogger, } from '@nuxt/kit'; import { defu } from 'defu'; -import type { SanctumModuleOptions } from './types'; +import type { SanctumModuleOptions } from './runtime/types'; type DeepPartial = { [P in keyof T]?: T[P] extends object ? DeepPartial : T[P]; diff --git a/src/runtime/composables/useSanctumConfig.ts b/src/runtime/composables/useSanctumConfig.ts index 45e1101..449b6f2 100644 --- a/src/runtime/composables/useSanctumConfig.ts +++ b/src/runtime/composables/useSanctumConfig.ts @@ -1,5 +1,5 @@ import { useRuntimeConfig } from '#app'; -import type { SanctumModuleOptions } from '../../types'; +import type { SanctumModuleOptions } from '../types'; export const useSanctumConfig = (): SanctumModuleOptions => { return useRuntimeConfig().public.sanctum as SanctumModuleOptions; diff --git a/src/types.ts b/src/runtime/types.ts similarity index 100% rename from src/types.ts rename to src/runtime/types.ts