このコミットが含まれているのは:
2026-10-19 23:08:59 +09:00
コミット 4ab13c4244
56個のファイルの変更、1071行の追加、259行の削除
+8 -1
ファイルの表示
@@ -1,5 +1,5 @@
import type { QueryClient } from '@tanstack/react-query'
import type { IndexRouteObject, NonIndexRouteObject, Params } from 'react-router-dom'
import type { IndexRouteObject, Location, NonIndexRouteObject, Params } from 'react-router-dom'
import type { LocaleCode } from '@/lib/locales'
@@ -9,8 +9,15 @@ export type PagePreparation = {
locale: LocaleCode
searchParams: URLSearchParams }
export type LocaleSwitchRequest = {
location: Pick<Location, 'pathname' | 'search' | 'hash'>
params: Readonly<Params>
locale: LocaleCode
targetLocale: LocaleCode }
export type PageRouteHandle = {
prepare?: (request: PagePreparation) => Promise<number>
switchLocale?: (request: LocaleSwitchRequest) => Promise<string>
locale?: LocaleCode
robots?: 'noindex'
authentication?: 'user'