Open History to see the last commit
1export * from './global'
2β
3export { TSR_DEFERRED_PROMISE, defer } from './defer'
4export type { DeferredPromiseState, DeferredPromise } from './defer'
5export { preloadWarning } from './link'
6export type {
7 IsRequiredParams,
8 AddTrailingSlash,
9 RemoveTrailingSlashes,
10 AddLeadingSlash,
11 RemoveLeadingSlashes,
12 ActiveOptions,
13 LinkOptionsProps,
14 ResolveCurrentPath,
15 ResolveParentPath,
16 ResolveRelativePath,
17 LinkCurrentTargetElement,
18 FindDescendantToPaths,
19 InferDescendantToPaths,
20 RelativeToPath,
21 RelativeToParentPath,
22 RelativeToCurrentPath,
23 AbsoluteToPath,
24 RelativeToPathAutoComplete,
25 NavigateOptions,
26 ToOptions,
27 ToMaskOptions,
28 ToSubOptions,
29 ResolveRoute,
30 SearchParamOptions,
31 PathParamOptions,
32 ToPathOption,
33 LinkOptions,
34 MakeOptionalPathParams,
35 FromPathOption,
36 MakeOptionalSearchParams,
37 MaskOptions,
38 ToSubOptionsProps,
39 RequiredToOptions,
40} from './link'
41β
42export { componentTypes } from './load-matches'
43β
44export type {
45 RouteToPath,
46 TrailingSlashOptionByRouter,
47 ParseRoute,
48 CodeRouteToPath,
49 RouteIds,
50 FullSearchSchema,
51 FullSearchSchemaInput,
52 AllParams,
53 RouteById,
54 AllContext,
55 RoutePaths,
56 RoutesById,
57 RoutesByPath,
58 AllLoaderData,
59 RouteByPath,
60} from './routeInfo'
61β
62export type {
63 InferFileRouteTypes,
64 FileRouteTypes,
65 FileRoutesByPath,
66 CreateFileRoute,
67 LazyRoute,
68 LazyRouteOptions,
69 CreateLazyFileRoute,
70} from './fileRoute'
71β
72export type { ParsedLocation } from './location'
73export type { Manifest, RouterManagedTag } from './manifest'
74export { isMatch } from './Matches'
75export type {
76 AnyMatchAndValue,
77 FindValueByIndex,
78 FindValueByKey,
79 CreateMatchAndValue,
80 NextMatchAndValue,
81 IsMatchKeyOf,
82 IsMatchPath,
83 IsMatchResult,
84 IsMatchParse,
85 IsMatch,
86 RouteMatch,
87 RouteMatchExtensions,
88 MakeRouteMatchUnion,
89 MakeRouteMatch,
90 AnyRouteMatch,
91 MakeRouteMatchFromRoute,
92 MatchRouteOptions,
93} from './Matches'
94export {
95 joinPaths,
96 cleanPath,
97 trimPathLeft,
98 trimPathRight,
99 trimPath,
100 removeTrailingSlash,
101 exactPathTest,
102 resolvePath,
103 parsePathname,
104 interpolatePath,
105 matchPathname,
106 matchByPath,
107} from './path'
108export type { Segment } from './path'
109export { encode, decode } from './qss'
110export { rootRouteId } from './root'
111export type { RootRouteId } from './root'
112β
113export { BaseRoute, BaseRouteApi, BaseRootRoute } from './route'
114export type {
115 AnyPathParams,
116 SearchSchemaInput,
117 AnyContext,
118 RouteContext,
119 PreloadableObj,
120 RoutePathOptions,
121 StaticDataRouteOption,
122 RoutePathOptionsIntersection,
123 SearchFilter,
124 SearchMiddlewareContext,
125 SearchMiddleware,
126 ResolveId,
127 InferFullSearchSchema,
128 InferFullSearchSchemaInput,
129 InferAllParams,
130 InferAllContext,
131 MetaDescriptor,
132 RouteLinkEntry,
133 SearchValidator,
134 AnySearchValidator,
135 DefaultSearchValidator,
136 ErrorRouteProps,
137 ErrorComponentProps,
138 NotFoundRouteProps,
139 ResolveParams,
140 ParseParamsFn,
141 StringifyParamsFn,
142 ParamsOptions,
143 UpdatableStaticRouteOption,
144 ContextReturnType,
145 ContextAsyncReturnType,
146 ResolveRouteContext,
147 ResolveLoaderData,
148 RoutePrefix,
149 TrimPath,
150 TrimPathLeft,
151 TrimPathRight,
152 ResolveSearchSchemaFnInput,
153 ResolveSearchSchemaInput,
154 ResolveSearchSchemaFn,
155 ResolveSearchSchema,
156 ResolveFullSearchSchema,
157 ResolveFullSearchSchemaInput,
158 ResolveAllContext,
159 BeforeLoadContextParameter,
160 RouteContextParameter,
161 ResolveAllParamsFromParent,
162 AnyRoute,
163 Route,
164 RouteTypes,
165 FullSearchSchemaOption,
166 RemountDepsOptions,
167 MakeRemountDepsOptionsUnion,
168 ResolveFullPath,
169 AnyRouteWithContext,
170 RouteOptions,
171 FileBaseRouteOptions,
172 BaseRouteOptions,
173 UpdatableRouteOptions,
174 RouteLoaderFn,
175 LoaderFnContext,
176 RouteContextFn,
177 ContextOptions,
178 RouteContextOptions,
179 BeforeLoadContextOptions,
180 RootRouteOptions,
181 RootRouteOptionsExtensions,
182 UpdatableRouteOptionsExtensions,
183 RouteConstraints,
184 RouteTypesById,
185 RouteMask,
186 RouteExtensions,
187 RouteLazyFn,
188 RouteAddChildrenFn,
189 RouteAddFileChildrenFn,
190 RouteAddFileTypesFn,
191 ResolveOptionalParams,
192 ResolveRequiredParams,
193 RootRoute,
194 FilebaseRouteOptionsInterface,
195} from './route'
196export { processRouteTree } from './process-route-tree'
197export type { ProcessRouteTreeResult } from './process-route-tree'
198export {
199 defaultSerializeError,
200 getLocationChangeInfo,
201 RouterCore,
202 lazyFn,
203 SearchParamError,
204 PathParamError,
205 getInitialRouterState,
206 getMatchedRoutes,
207 trailingSlashOptions,
208} from './router'
209β
210export type {
211 ViewTransitionOptions,
212 TrailingSlashOption,
213 Register,
214 AnyRouter,
215 AnyRouterWithContext,
216 RegisteredRouter,
217 RouterState,
218 BuildNextOptions,
219 RouterListener,
220 RouterEvent,
221 ListenerFn,
222 RouterEvents,
223 MatchRoutesOpts,
224 RouterOptionsExtensions,
225 DefaultRemountDepsFn,
226 PreloadRouteFn,
227 MatchRouteFn,
228 RouterContextOptions,
229 RouterOptions,
230 RouterConstructorOptions,
231 UpdateFn,
232 ParseLocationFn,
233 InvalidateFn,
234 ControllablePromise,
235 InjectedHtmlEntry,
236 EmitFn,
237 LoadFn,
238 GetMatchFn,
239 SubscribeFn,
240 UpdateMatchFn,
241 CommitLocationFn,
242 GetMatchRoutesFn,
243 MatchRoutesFn,
244 StartTransitionFn,
245 LoadRouteChunkFn,
246 ClearCacheFn,
247 CreateRouterFn,
248 SSROption,
249} from './router'
250β
251export * from './config'
252β
253export type {
254 MatchLocation,
255 CommitLocationOptions,
256 NavigateFn,
257 BuildLocationFn,
258} from './RouterProvider'
259β
260export { retainSearchParams, stripSearchParams } from './searchMiddleware'
261β
262export {
263 defaultParseSearch,
264 defaultStringifySearch,
265 parseSearchWith,
266 stringifySearchWith,
267} from './searchParams'
268export type { SearchSerializer, SearchParser } from './searchParams'
269β
270export type { OptionalStructuralSharing } from './structuralSharing'
271β
272export {
273 last,
274 functionalUpdate,
275 replaceEqualDeep,
276 isPlainObject,
277 isPlainArray,
278 deepEqual,
279 createControlledPromise,
280 isModuleNotFoundError,
281} from './utils'
282export type {
283 NoInfer,
284 IsAny,
285 PickAsRequired,
286 PickRequired,
287 PickOptional,
288 WithoutEmpty,
289 Expand,
290 DeepPartial,
291 MakeDifferenceOptional,
292 IsUnion,
293 IsNonEmptyObject,
294 Assign,
295 IntersectAssign,
296 Timeout,
297 Updater,
298 NonNullableUpdater,
299 StringLiteral,
300 ThrowOrOptional,
301 ThrowConstraint,
302 ControlledPromise,
303 ExtractObjects,
304 PartialMergeAllObject,
305 MergeAllPrimitive,
306 ExtractPrimitives,
307 PartialMergeAll,
308 Constrain,
309 ConstrainLiteral,
310 UnionToIntersection,
311 MergeAllObjects,
312 MergeAll,
313 ValidateJSON,
314 StrictOrFrom,
315 LooseReturnType,
316 LooseAsyncReturnType,
317 Awaitable,
318} from './utils'
319β
320export type {
321 StandardSchemaValidatorProps,
322 StandardSchemaValidator,
323 AnyStandardSchemaValidator,
324 StandardSchemaValidatorTypes,
325 AnyStandardSchemaValidateSuccess,
326 AnyStandardSchemaValidateFailure,
327 AnyStandardSchemaValidateIssue,
328 AnyStandardSchemaValidateInput,
329 AnyStandardSchemaValidate,
330 ValidatorObj,
331 AnyValidatorObj,
332 ValidatorAdapter,
333 AnyValidatorAdapter,
334 AnyValidatorFn,
335 ValidatorFn,
336 Validator,
337 AnyValidator,
338 AnySchema,
339 DefaultValidator,
340 ResolveSearchValidatorInputFn,
341 ResolveSearchValidatorInput,
342 ResolveValidatorInputFn,
343 ResolveValidatorInput,
344 ResolveValidatorOutputFn,
345 ResolveValidatorOutput,
346} from './validators'
347β
348export type {
349 UseRouteContextBaseOptions,
350 UseRouteContextOptions,
351 UseRouteContextResult,
352} from './useRouteContext'
353β
354export type { UseSearchResult, ResolveUseSearch } from './useSearch'
355β
356export type { UseParamsResult, ResolveUseParams } from './useParams'
357β
358export type { UseNavigateResult } from './useNavigate'
359β
360export type { UseLoaderDepsResult, ResolveUseLoaderDeps } from './useLoaderDeps'
361β
362export type { UseLoaderDataResult, ResolveUseLoaderData } from './useLoaderData'
363β
364export type {
365 Redirect,
366 RedirectOptions,
367 ResolvedRedirect,
368 AnyRedirect,
369} from './redirect'
370β
371export {
372 redirect,
373 isRedirect,
374 isResolvedRedirect,
375 parseRedirect,
376} from './redirect'
377β
378export type { NotFoundError } from './not-found'
379export { isNotFound, notFound } from './not-found'
380β
381export {
382 defaultGetScrollRestorationKey,
383 restoreScroll,
384 storageKey,
385 getCssSelector,
386 scrollRestorationCache,
387 setupScrollRestoration,
388 handleHashScroll,
389} from './scroll-restoration'
390β
391export type {
392 ScrollRestorationOptions,
393 ScrollRestorationEntry,
394} from './scroll-restoration'
395β
396export type {
397 ValidateFromPath,
398 ValidateToPath,
399 ValidateSearch,
400 ValidateParams,
401 InferFrom,
402 InferTo,
403 InferMaskTo,
404 InferMaskFrom,
405 ValidateNavigateOptions,
406 ValidateNavigateOptionsArray,
407 ValidateRedirectOptions,
408 ValidateRedirectOptionsArray,
409 ValidateId,
410 InferStrict,
411 InferShouldThrow,
412 InferSelected,
413 ValidateUseSearchResult,
414 ValidateUseParamsResult,
415} from './typePrimitives'
416β
417export type {
418 AnySerializationAdapter,
419 SerializationAdapter,
420 ValidateSerializableInput,
421 ValidateSerializableInputResult,
422 SerializerExtensions,
423 ValidateSerializable,
424 RegisteredSerializableInput,
425 SerializableExtensions,
426 DefaultSerializable,
427 Serializable,
428 TSR_SERIALIZABLE,
429 TsrSerializable,
430} from './ssr/serializer/transformer'
431β
432export {
433 createSerializationAdapter,
434 makeSerovalPlugin,
435 makeSsrSerovalPlugin,
436} from './ssr/serializer/transformer'
437β
438export { defaultSerovalPlugins } from './ssr/serializer/seroval-plugins'
439β
440export {
441 composeRewrites,
442 executeRewriteInput,
443 executeRewriteOutput,
444} from './rewrite'
445export type { LocationRewrite, LocationRewriteFunction } from './router'