@upstash/workflow
Version:
Durable, Reliable and Performant Serverless Functions
22 lines (19 loc) • 702 B
TypeScript
import { APIEvent } from '@solidjs/start/server';
import { R as RouteFunction, n as PublicServeOptions } from './types-Q3dM0UlR.js';
import '@upstash/qstash';
import 'zod';
import 'ai';
import '@ai-sdk/openai';
/**
* Serve method to serve a Upstash Workflow in a SolidJS project
*
* See for options https://upstash.com/docs/qstash/workflows/basics/serve
*
* @param routeFunction workflow function
* @param options workflow options
* @returns
*/
declare const serve: <TInitialPayload = unknown, TResult = unknown>(routeFunction: RouteFunction<TInitialPayload, TResult>, options?: PublicServeOptions<TInitialPayload>) => {
POST: (event: APIEvent) => Promise<Response>;
};
export { serve };