mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-09-27 23:13:01 -04:00

the #shared alias used by Nuxt cannot be easily disabled and to prevent breackage with jiti, we make use of it
29 lines
692 B
TypeScript
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>;
|
|
}
|
|
}
|