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 { invariant } from './invariant'
6export { preloadWarning } from './link'
7export type {
8 IsRequiredParams,
9 AddTrailingSlash,
10 RemoveTrailingSlashes,
11 AddLeadingSlash,
12 RemoveLeadingSlashes,
13 ActiveOptions,
14 LinkOptionsProps,
15 ResolveCurrentPath,
16 ResolveParentPath,
17 ResolveRelativePath,
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 type {
43 RouteToPath,
44 TrailingSlashOptionByRouter,
45 ParseRoute,
46 CodeRouteToPath,
47 RouteIds,
48 FullSearchSchema,
49 FullSearchSchemaInput,
50 AllParams,
51 RouteById,
52 AllContext,
53 RoutePaths,
54 RoutesById,
55 RoutesByPath,
56 AllLoaderData,
57 RouteByPath,
58} from './routeInfo'
59β
60export type {
61 InferFileRouteTypes,
62 FileRouteTypes,
63 FileRoutesByPath,
64 CreateFileRoute,
65 LazyRoute,
66 LazyRouteOptions,
67 CreateLazyFileRoute,
68} from './fileRoute'
69β
70export type { ParsedLocation } from './location'
71export type {
72 Manifest,
73 ServerManifest,
74 ManifestRoute,
75 ManifestRouteAssets,
76 ServerManifestRoute,
77 ManifestCssLink,
78 ManifestInlineCss,
79 ServerManifestInlineCss,
80 InlineCssTemplate,
81 ManifestScript,
82 RouterManagedTag,
83 RouterManagedTitleTag,
84 RouterManagedMetaTag,
85 RouterManagedInlineCssTag,
86 RouterManagedScriptTag,
87 RouterManagedLinkTag,
88 RouterManagedStyleTag,
89 AssetCrossOrigin,
90 AssetCrossOriginConfig,
91 ManifestAssetLink,
92 ScriptFormat,
93} from './manifest'
94export {
95 DEV_STYLES_ATTR,
96 appendUniqueUserTags,
97 createInlineCssStyleAsset,
98 getAssetCrossOrigin,
99 getManifestScriptFormat,
100 getScriptPreloadAttrs,
101 getStylesheetHref,
102 resolveManifestAssetLink,
103 resolveManifestCssLink,
104} from './manifest'
105export { isMatch } from './Matches'
106export {
107 _getAssetMatches,
108 _getRenderedMatches,
109 _isRouteDeparting,
110} from './load-client'
111export { composeSsrBodyScripts, getSsrBodyScriptParts } from './ssr/bodyScripts'
112export type {
113 AnyMatchAndValue,
114 FindValueByIndex,
115 FindValueByKey,
116 CreateMatchAndValue,
117 NextMatchAndValue,
118 IsMatchKeyOf,
119 IsMatchPath,
120 IsMatchResult,
121 IsMatchParse,
122 IsMatch,
123 RouteMatch,
124 RouteMatchExtensions,
125 MakeRouteMatchUnion,
126 MakeRouteMatch,
127 AnyRouteMatch,
128 MakeRouteMatchFromRoute,
129 MatchRouteOptions,
130} from './Matches'
131export {
132 joinPaths,
133 cleanPath,
134 trimPathLeft,
135 trimPathRight,
136 trimPath,
137 removeTrailingSlash,
138 exactPathTest,
139 resolvePath,
140 interpolatePath,
141 getRouteSegments,
142 hasMissingPathParams,
143} from './path'
144export { encode, decode } from './qss'
145export { rootRouteId } from './root'
146export type { RootRouteId } from './root'
147β
148export { BaseRoute, BaseRouteApi, BaseRootRoute } from './route'
149export type {
150 AnyPathParams,
151 SearchSchemaInput,
152 AnyContext,
153 RouteContext,
154 PreloadableObj,
155 RoutePathOptions,
156 StaticDataRouteOption,
157 RoutePathOptionsIntersection,
158 SearchFilter,
159 SearchMiddlewareContext,
160 SearchMiddleware,
161 ResolveId,
162 InferFullSearchSchema,
163 InferFullSearchSchemaInput,
164 InferAllParams,
165 InferAllContext,
166 MetaDescriptor,
167 RouteLinkEntry,
168 SearchValidator,
169 AnySearchValidator,
170 DefaultSearchValidator,
171 ErrorRouteProps,
172 ErrorComponentProps,
173 DefaultErrorBoundaryTypes,
174 ErrorBoundaryTypes,
175 NotFoundRouteProps,
176 ResolveParams,
177 ParseParamsFn,
178 StringifyParamsFn,
179 ParamsOptions,
180 UpdatableStaticRouteOption,
181 ContextReturnType,
182 ContextAsyncReturnType,
183 ResolveRouteContext,
184 ResolveLoaderData,
185 RoutePrefix,
186 TrimPath,
187 TrimPathLeft,
188 TrimPathRight,
189 ResolveSearchSchemaFnInput,
190 ResolveSearchSchemaInput,
191 ResolveSearchSchemaFn,
192 ResolveSearchSchema,
193 ResolveFullSearchSchema,
194 ResolveFullSearchSchemaInput,
195 ResolveAllContext,
196 BeforeLoadContextParameter,
197 RouteContextParameter,
198 ResolveAllParamsFromParent,
199 AnyRoute,
200 Route,
201 RouteTypes,
202 FullSearchSchemaOption,
203 RemountDepsOptions,
204 MakeRemountDepsOptionsUnion,
205 ResolveFullPath,
206 AnyRouteWithContext,
207 RouteOptions,
208 FileBaseRouteOptions,
209 BaseRouteOptions,
210 UpdatableRouteOptions,
211 LoaderStaleReloadMode,
212 RouteLoaderFn,
213 RouteLoaderEntry,
214 LoaderFnContext,
215 RouteContextFn,
216 ContextOptions,
217 RouteContextOptions,
218 SsrContextOptions,
219 BeforeLoadContextOptions,
220 RootRouteOptions,
221 RootRouteOptionsExtensions,
222 UpdatableRouteOptionsExtensions,
223 RouteConstraints,
224 RouteTypesById,
225 RouteMask,
226 RouteExtensions,
227 RouteLazyFn,
228 RouteAddChildrenFn,
229 RouteAddFileChildrenFn,
230 RouteAddFileTypesFn,
231 ResolveOptionalParams,
232 ResolveRequiredParams,
233 RootRoute,
234 FilebaseRouteOptionsInterface,
235} from './route'
236export {
237 createNonReactiveMutableStore,
238 createNonReactiveReadonlyStore,
239} from './stores'
240export type {
241 RouterBatchFn,
242 RouterReadableStore,
243 GetStoreConfig,
244 RouterStores,
245 RouterWritableStore,
246} from './stores'
247export {
248 defaultSerializeError,
249 getLocationChangeInfo,
250 RouterCore,
251 lazyFn,
252 SearchParamError,
253 PathParamError,
254 getInitialRouterState,
255 trailingSlashOptions,
256} from './router'
257β
258export type {
259 ViewTransitionOptions,
260 TrailingSlashOption,
261 Register,
262 AnyRouter,
263 AnyRouterWithContext,
264 RegisteredRouter,
265 RouterState,
266 BuildNextOptions,
267 RouterListener,
268 RouterEvent,
269 ListenerFn,
270 RouterEvents,
271 MatchRoutesOpts,
272 RouterOptionsExtensions,
273 DefaultRemountDepsFn,
274 PreloadRouteFn,
275 MatchRouteFn,
276 RouterContextOptions,
277 RouterOptions,
278 RouterConstructorOptions,
279 UpdateFn,
280 ParseLocationFn,
281 InvalidateFn,
282 ControllablePromise,
283 EmitFn,
284 LoadFn,
285 SubscribeFn,
286 CommitLocationFn,
287 GetMatchRoutesFn,
288 MatchRoutesFn,
289 StartTransitionFn,
290 LoadRouteChunkFn,
291 ClearCacheFn,
292 CreateRouterFn,
293 SSROption,
294} from './router'
295β
296export * from './config'
297β
298export type {
299 MatchLocation,
300 CommitLocationOptions,
301 NavigateFn,
302 BuildLocationFn,
303} from './RouterProvider'
304β
305export { retainSearchParams, stripSearchParams } from './searchMiddleware'
306β
307export {
308 defaultParseSearch,
309 defaultStringifySearch,
310 parseSearchWith,
311 stringifySearchWith,
312} from './searchParams'
313export type { SearchSerializer, SearchParser } from './searchParams'
314β
315export type { OptionalStructuralSharing } from './structuralSharing'
316β
317export {
318 functionalUpdate,
319 hasKeys,
320 replaceEqualDeep,
321 deepEqual,
322 createControlledPromise,
323 isPromise,
324 isModuleNotFoundError,
325 DEFAULT_PROTOCOL_ALLOWLIST,
326 escapeHtml,
327 getUrlScheme,
328 isDangerousProtocol,
329 buildDevStylesUrl,
330} from './utils'
331export type {
332 NoInfer,
333 IsAny,
334 PickAsRequired,
335 PickRequired,
336 PickOptional,
337 WithoutEmpty,
338 Expand,
339 DeepPartial,
340 MakeDifferenceOptional,
341 IsUnion,
342 IsNonEmptyObject,
343 Assign,
344 IntersectAssign,
345 Timeout,
346 Updater,
347 NonNullableUpdater,
348 StringLiteral,
349 ThrowOrOptional,
350 ThrowConstraint,
351 ControlledPromise,
352 ExtractObjects,
353 PartialMergeAllObject,
354 MergeAllPrimitive,
355 ExtractPrimitives,
356 PartialMergeAll,
357 Constrain,
358 ConstrainLiteral,
359 UnionToIntersection,
360 MergeAllObjects,
361 MergeAll,
362 ValidateJSON,
363 StrictOrFrom,
364 LooseReturnType,
365 LooseAsyncReturnType,
366 Awaitable,
367} from './utils'
368β
369export type {
370 StandardSchemaValidatorProps,
371 StandardSchemaValidator,
372 AnyStandardSchemaValidator,
373 StandardSchemaValidatorTypes,
374 AnyStandardSchemaValidateSuccess,
375 AnyStandardSchemaValidateFailure,
376 AnyStandardSchemaValidateIssue,
377 AnyStandardSchemaValidateInput,
378 AnyStandardSchemaValidate,
379 ValidatorObj,
380 AnyValidatorObj,
381 ValidatorAdapter,
382 AnyValidatorAdapter,
383 AnyValidatorFn,
384 ValidatorFn,
385 Validator,
386 AnyValidator,
387 AnySchema,
388 DefaultValidator,
389 ResolveSearchValidatorInputFn,
390 ResolveSearchValidatorInput,
391 ResolveValidatorInputFn,
392 ResolveValidatorInput,
393 ResolveValidatorOutputFn,
394 ResolveValidatorOutput,
395} from './validators'
396β
397export type {
398 UseRouteContextBaseOptions,
399 UseRouteContextOptions,
400 UseRouteContextResult,
401} from './useRouteContext'
402β
403export type { UseSearchResult, ResolveUseSearch } from './useSearch'
404β
405export type { UseParamsResult, ResolveUseParams } from './useParams'
406β
407export type { UseNavigateResult } from './useNavigate'
408β
409export type { UseLoaderDepsResult, ResolveUseLoaderDeps } from './useLoaderDeps'
410β
411export type { UseLoaderDataResult, ResolveUseLoaderData } from './useLoaderData'
412β
413export type {
414 Redirect,
415 RedirectOptions,
416 RedirectOptionsRoute,
417 RedirectFnRoute,
418 ResolvedRedirect,
419 AnyRedirect,
420} from './redirect'
421β
422export {
423 redirect,
424 isRedirect,
425 isResolvedRedirect,
426 parseRedirect,
427} from './redirect'
428β
429export type { NotFoundError } from './not-found'
430export { isNotFound, notFound } from './not-found'
431β
432export {
433 defaultGetScrollRestorationKey,
434 getElementScrollRestorationEntry,
435 storageKey,
436 setupScrollRestoration,
437} from './scroll-restoration'
438β
439export type {
440 ScrollRestorationOptions,
441 ScrollRestorationEntry,
442} from './scroll-restoration'
443β
444export type {
445 ValidateFromPath,
446 ValidateToPath,
447 ValidateSearch,
448 ValidateParams,
449 InferFrom,
450 InferTo,
451 InferMaskTo,
452 InferMaskFrom,
453 ValidateNavigateOptions,
454 ValidateNavigateOptionsArray,
455 ValidateRedirectOptions,
456 ValidateRedirectOptionsArray,
457 ValidateId,
458 InferStrict,
459 InferShouldThrow,
460 InferSelected,
461 ValidateUseSearchResult,
462 ValidateUseParamsResult,
463} from './typePrimitives'
464β
465export type {
466 AnySerializationAdapter,
467 SerializationAdapter,
468 ValidateSerializableInput,
469 SerializerExtensions,
470 ValidateSerializable,
471 RegisteredSerializableInput,
472 SerializableExtensions,
473 DefaultSerializable,
474 Serializable,
475 TSR_SERIALIZABLE,
476 TsrSerializable,
477 SerializationError,
478} from './ssr/serializer/transformer'
479β
480export { createSerializationAdapter } from './ssr/serializer/transformer'
481export { makeSerovalPlugin } from './ssr/serializer/makeSerovalPlugin'
482β
483export { RawStream } from './ssr/serializer/RawStream'
484export type {
485 OnRawStreamCallback,
486 RawStreamHint,
487 RawStreamOptions,
488} from './ssr/serializer/RawStream'
489β
490export { composeRewrites, executeRewriteInput } from './rewrite'
491export type { LocationRewrite, LocationRewriteFunction } from './router'