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

virtual-modules.d.ts

12 lines440 Bytes

1// Type declarations for virtual modules used in RSC entry
2// These modules are provided by the active bundler adapter at runtime
3​
4declare module '#tanstack-start-server-fn-resolver' {
5 export type ServerFnLookupAccess = { origin: 'client' } | { origin: 'server' }
6​
7 export type ServerFn = (...args: Array<any>) => Promise<any>
8 export function getServerFnById(
9 id: string,
10 access: ServerFnLookupAccess,
11 ): Promise<ServerFn>