Files
med-notes/.pnpm-store/v10/files/aa/a973c584503aaf6afb634a4acf108c182d5b7845bc1f86f0b239f3d2a51b7e4beeeb243d142c167ef0ad23b46630f12ae64270c7b61e9f5ad1b73c82f491ab
2025-05-09 05:30:08 +02:00

27 lines
1.4 KiB
Plaintext

import { NavigateOptions, ToOptions } from './link.cjs';
import { ParsedLocation } from './location.cjs';
import { RoutePaths } from './routeInfo.cjs';
import { AnyRouter, RegisteredRouter, ViewTransitionOptions } from './router.cjs';
export interface MatchLocation {
to?: string | number | null;
fuzzy?: boolean;
caseSensitive?: boolean;
from?: string;
}
export interface CommitLocationOptions {
replace?: boolean;
resetScroll?: boolean;
hashScrollIntoView?: boolean | ScrollIntoViewOptions;
viewTransition?: boolean | ViewTransitionOptions;
/**
* @deprecated All navigations use React transitions under the hood now
**/
startTransition?: boolean;
ignoreBlocker?: boolean;
}
export type NavigateFn = <TRouter extends RegisteredRouter, TTo extends string | undefined, TFrom extends RoutePaths<TRouter['routeTree']> | string = string, TMaskFrom extends RoutePaths<TRouter['routeTree']> | string = TFrom, TMaskTo extends string = ''>(opts: NavigateOptions<TRouter, TFrom, TTo, TMaskFrom, TMaskTo>) => Promise<void> | void;
export type BuildLocationFn = <TRouter extends AnyRouter, TTo extends string | undefined, TFrom extends RoutePaths<TRouter['routeTree']> | string = string, TMaskFrom extends RoutePaths<TRouter['routeTree']> | string = TFrom, TMaskTo extends string = ''>(opts: ToOptions<TRouter, TFrom, TTo, TMaskFrom, TMaskTo> & {
leaveParams?: boolean;
_includeValidateSearch?: boolean;
}) => ParsedLocation;