このコミットが含まれているのは:
@@ -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'
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする