UNPKG

@upstash/qstash

Version:

Official Typescript client for QStash

27 lines (24 loc) 1.1 kB
import { APIHandler, APIEvent } from '@solidjs/start/server'; import { a9 as RouteFunction, aa as WorkflowServeOptions } from './client-DKNfczbM.mjs'; import 'neverthrow'; type VerifySignatureConfig = { currentSigningKey?: string; nextSigningKey?: string; clockTolerance?: number; }; declare const verifySignatureSolidjs: (handler: APIHandler, config?: VerifySignatureConfig) => APIHandler; /** * Serve method to serve a Upstash Workflow in a Nextjs project * * See for options https://upstash.com/docs/qstash/workflows/basics/serve * * @param routeFunction workflow function * @param options workflow options * @returns * * @deprecated as of version 2.7.17. Will be removed in qstash-js 3.0.0. * Please use https://github.com/upstash/workflow-js * Migration Guide: https://upstash.com/docs/workflow/migration */ declare const serve: <TInitialPayload = unknown>(routeFunction: RouteFunction<TInitialPayload>, options?: Omit<WorkflowServeOptions<Response, TInitialPayload>, "onStepFinish">) => (event: APIEvent) => Promise<Response>; export { serve, verifySignatureSolidjs };