Skip to content
Source
Sign inSign up
TanStack/router
Open History to see the last commit

index.tsx

104 lines2.8 KB

1export type {
2 DehydratedRouter,
3 JsonResponse,
4} from '@tanstack/router-core/ssr/client'
5​
6export { hydrate, json, mergeHeaders } from '@tanstack/router-core/ssr/client'
7​
8export {
9 createIsomorphicFn,
10 type IsomorphicFn,
11 type ServerOnlyFn,
12 type ClientOnlyFn,
13 type IsomorphicFnBase,
14} from './createIsomorphicFn'
15export { createServerOnlyFn, createClientOnlyFn } from './envOnly'
16export { createServerFn } from './createServerFn'
17export {
18 createMiddleware,
19 type IntersectAllValidatorInputs,
20 type IntersectAllValidatorOutputs,
21 type FunctionMiddlewareServerFn,
22 type AnyFunctionMiddleware,
23 type FunctionMiddlewareOptions,
24 type FunctionMiddlewareWithTypes,
25 type FunctionMiddlewareValidator,
26 type FunctionMiddlewareServer,
27 type FunctionMiddlewareAfterClient,
28 type FunctionMiddlewareAfterServer,
29 type FunctionMiddleware,
30 type FunctionMiddlewareAfterMiddleware,
31 type FunctionMiddlewareClientFnOptions,
32 type FunctionMiddlewareClientFnResult,
33 type FunctionMiddlewareClientNextFn,
34 type FunctionClientResultWithContext,
35 type AssignAllClientContextBeforeNext,
36 type AssignAllMiddleware,
37 type FunctionMiddlewareAfterValidator,
38 type FunctionMiddlewareClientFn,
39 type FunctionMiddlewareServerFnResult,
40 type FunctionMiddlewareClient,
41 type FunctionMiddlewareServerFnOptions,
42 type FunctionMiddlewareServerNextFn,
43 type FunctionServerResultWithContext,
44 type AnyRequestMiddleware,
45 type RequestMiddlewareOptions,
46 type RequestMiddlewareWithTypes,
47 type RequestMiddlewareServer,
48 type RequestMiddlewareAfterServer,
49 type RequestMiddleware,
50 type RequestMiddlewareAfterMiddleware,
51 type RequestServerFn,
52 type RequestMiddlewareServerFnResult,
53 type RequestServerOptions,
54 type RequestServerNextFn,
55 type RequestServerNextFnOptions,
56 type RequestServerResult,
57} from './createMiddleware'
58export type {
59 CompiledFetcherFnOptions,
60 CompiledFetcherFn,
61 Fetcher,
62 RscStream,
63 FetcherBaseOptions,
64 ServerFn,
65 ServerFnCtx,
66 MiddlewareFn,
67 ServerFnMiddlewareOptions,
68 ServerFnMiddlewareResult,
69 ServerFnBuilder,
70 ServerFnBaseOptions,
71 NextFn,
72 Method,
73 OptionalFetcher,
74 RequiredFetcher,
75} from './createServerFn'
76export {
77 applyMiddleware,
78 execValidator,
79 flattenMiddlewares,
80 executeMiddleware,
81} from './createServerFn'
82​
83export {
84 TSS_FORMDATA_CONTEXT,
85 TSS_SERVER_FUNCTION,
86 X_TSS_SERIALIZED,
87 X_TSS_RAW_RESPONSE,
88} from './constants'
89​
90export type * from './serverRoute'
91​
92export type * from './startEntry'
93​
94export { createStart } from './createStart'
95export type {
96 AnyStartInstance,
97 AnyStartInstanceOptions,
98 StartInstance,
99} from './createStart'
100export type { Register } from '@tanstack/router-core'
101​
102export { getRouterInstance } from './getRouterInstance'
103export { getDefaultSerovalPlugins } from './getDefaultSerovalPlugins'
104export { getGlobalStartContext } from './getGlobalStartContext'