PronounsPage/app/utils/calendarDayRoute.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

9 lines
309 B
TypeScript

import type { RouteLocationRaw } from 'vue-router';
import type { Day } from '#shared/calendar/helpers.ts';
export default (day: Day): RouteLocationRaw => ({
name: 'calendarDay',
params: { year: day.year, month: day.month.toString().padStart(2, '0'), day: day.day.toString().padStart(2, '0') },
});