From c1409f18d4a2556dcd6d6a19e5bd11c763a8d9ee Mon Sep 17 00:00:00 2001 From: Bobbie Goede Date: Thu, 14 Nov 2024 14:20:35 +0100 Subject: [PATCH] fix: remove unused shared-types file --- src/runtime/shared-types.ts | 519 ------------------------------------ 1 file changed, 519 deletions(-) delete mode 100644 src/runtime/shared-types.ts diff --git a/src/runtime/shared-types.ts b/src/runtime/shared-types.ts deleted file mode 100644 index 662d918e9..000000000 --- a/src/runtime/shared-types.ts +++ /dev/null @@ -1,519 +0,0 @@ -import type { Locale, I18nOptions } from 'vue-i18n' -import type { ParsedPath } from 'path' -import type { PluginOptions } from '@intlify/unplugin-vue-i18n' -import type { NuxtPage } from '@nuxt/schema' -import type { RouteMapGeneric, RouteMapI18n } from 'vue-router' - -// Options -export const STRATEGY_PREFIX = 'prefix' -export const STRATEGY_PREFIX_EXCEPT_DEFAULT = 'prefix_except_default' -export const STRATEGY_PREFIX_AND_DEFAULT = 'prefix_and_default' -export const STRATEGY_NO_PREFIX = 'no_prefix' -export const STRATEGIES = { - PREFIX: STRATEGY_PREFIX, - PREFIX_EXCEPT_DEFAULT: STRATEGY_PREFIX_EXCEPT_DEFAULT, - PREFIX_AND_DEFAULT: STRATEGY_PREFIX_AND_DEFAULT, - NO_PREFIX: STRATEGY_NO_PREFIX -} as const - -export type RedirectOnOptions = 'all' | 'root' | 'no prefix' - -export interface DetectBrowserLanguageOptions { - alwaysRedirect?: boolean - cookieCrossOrigin?: boolean - cookieDomain?: string | null - cookieKey?: string - cookieSecure?: boolean - fallbackLocale?: Locale | null - redirectOn?: RedirectOnOptions - useCookie?: boolean -} - -export type LocaleType = 'static' | 'dynamic' | 'unknown' - -export type LocaleFile = { path: string; cache?: boolean } - -export type LocaleInfo = { - /** - * NOTE: - * The following fields are for `file` in the nuxt i18n module `locales` option - */ - path?: string // abolute path - hash?: string - type?: LocaleType - /** - * NOTE: - * The following fields are for `files` (excludes nuxt layers) in the nuxt i18n module `locales` option. - */ - paths?: string[] - hashes?: string[] - types?: LocaleType[] -} & Omit & { - code: Locale - files: LocaleFile[] - meta?: (FileMeta & { file: LocaleFile })[] - } - -export type FileMeta = { - path: string - loadPath: string - hash: string - type: LocaleType - parsed: ParsedPath - key: string -} - -export type VueI18nConfigPathInfo = { - relative?: string - absolute?: string - hash?: string - type?: LocaleType - rootDir: string - relativeBase: string - meta: FileMeta -} - -export interface RootRedirectOptions { - path: string - statusCode: number -} - -type RouteLocationAsStringTypedListI18n = { - [N in keyof T]?: Partial> | false -} -export type CustomRoutePages = RouteLocationAsStringTypedListI18n - -export interface ExperimentalFeatures { - localeDetector?: string - switchLocalePathLinkSSR?: boolean - /** - * Automatically imports/initializes `$t`, `$rt`, `$d`, `$n`, `$tm` and `$te` functions in `