@tanstack/start-server-core
Version:
Modern and scalable routing for React applications
24 lines (18 loc) • 666 B
TypeScript
declare module 'tanstack-start-manifest:v' {
import type { ServerManifest } from '@tanstack/router-core'
export const tsrStartManifest: () => ServerManifest
}
declare module 'tanstack-start-route-tree:v' {
import type { AnyRoute } from '@tanstack/router-core'
export const routeTree: AnyRoute | undefined
}
declare module '#tanstack-start-server-fn-resolver' {
export type ServerFnLookupAccess = { origin: 'client' } | { origin: 'server' }
export type ServerFn = ((...args: Array<any>) => Promise<any>) & {
method?: 'GET' | 'POST'
}
export function getServerFnById(
id: string,
access: ServerFnLookupAccess,
): Promise<ServerFn>
}