@tanstack/start-client-core
Version:
Modern and scalable routing for React applications
11 lines (10 loc) • 537 B
TypeScript
/**
* Track an async post-processing promise in the current deserialization context.
* Called by deserializers that need to perform async work after sync deserialization.
*
* If no context is active (e.g., on server), this is a no-op.
*
* @param promise - The async work promise to track
*/
export declare function trackPostProcessPromise(promise: Promise<unknown>): void;
export declare function serverFnFetcher(url: string, args: Array<any>, handler: (url: string, requestInit: RequestInit) => Promise<Response>): Promise<any>;