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

tanstack-start.d.ts

23 lines666 Bytes

1declare module 'tanstack-start-manifest:v' {
2 import type { ServerManifest } from '@tanstack/router-core'
3​
4 export const tsrStartManifest: () => ServerManifest
5}
6​
7declare module 'tanstack-start-route-tree:v' {
8 import type { AnyRoute } from '@tanstack/router-core'
9​
10 export const routeTree: AnyRoute | undefined
12​
13declare module '#tanstack-start-server-fn-resolver' {
14 export type ServerFnLookupAccess = { origin: 'client' } | { origin: 'server' }
15​
16 export type ServerFn = ((...args: Array<any>) => Promise<any>) & {
17 method?: 'GET' | 'POST'
18 }
19 export function getServerFnById(
20 id: string,
21 access: ServerFnLookupAccess,
22 ): Promise<ServerFn>