PronounsPage/app/types.d.ts
Valentyne Stigloher 10180aa6a3 (refactor) use #shared alias instead of ~~/shared
the #shared alias used by Nuxt cannot be easily disabled and to prevent breackage with jiti, we make use of it
2025-08-17 18:56:02 +02:00

29 lines
692 B
TypeScript

import type { RouteMeta, RouteRecordRaw } from 'vue-router';
import type { Pronoun } from '#shared/classes.ts';
import type { NounConvention } from '#shared/nouns.ts';
import type { Config } from '~~/locale/config.ts';
declare global {
var originalRoutes: readonly RouteRecordRaw[];
}
interface TranslatedRoute {
paths: string[];
meta?: RouteMeta;
}
declare module 'nuxt/app' {
interface PageMeta {
translatedPaths?: (config: Config) => string[] | Record<string, TranslatedRoute>;
}
}
declare module 'vue-router' {
interface RouteMeta {
headerCategory?: string;
pronoun?: Pronoun;
nounConvention?: WithKey<NounConvention>;
}
}