@upstash/workflow 0.3.0-rc → 0.3.0-rc1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/cloudflare.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { R as RouteFunction, n as PublicServeOptions, y as InvokableWorkflow } from './types-DESkn7K9.mjs';
2
- import { s as serveManyBase } from './serve-many-DEwKPF6H.mjs';
1
+ import { c as RouteFunction, d as WorkflowServeOptions, x as InvokableWorkflow } from './types-pEje3VEB.mjs';
2
+ import { s as serveManyBase } from './serve-many-DhB8-zPD.mjs';
3
3
  import '@upstash/qstash';
4
4
  import 'zod';
5
5
 
@@ -30,7 +30,7 @@ type WorkersHandlerArgs = [Request, Record<string, string | undefined>];
30
30
  * @param options workflow options
31
31
  * @returns
32
32
  */
33
- declare const serve: <TInitialPayload = unknown, TResult = unknown>(routeFunction: RouteFunction<TInitialPayload, TResult>, options?: PublicServeOptions<TInitialPayload>) => {
33
+ declare const serve: <TInitialPayload = unknown, TResult = unknown>(routeFunction: RouteFunction<TInitialPayload, TResult>, options?: WorkflowServeOptions<TInitialPayload, TResult>) => {
34
34
  fetch: (...args: PagesHandlerArgs | WorkersHandlerArgs) => Promise<Response>;
35
35
  };
36
36
  declare const createWorkflow: <TInitialPayload, TResult>(...params: Parameters<typeof serve<TInitialPayload, TResult>>) => InvokableWorkflow<TInitialPayload, TResult>;
package/cloudflare.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { R as RouteFunction, n as PublicServeOptions, y as InvokableWorkflow } from './types-DESkn7K9.js';
2
- import { s as serveManyBase } from './serve-many-DVtHRxeg.js';
1
+ import { c as RouteFunction, d as WorkflowServeOptions, x as InvokableWorkflow } from './types-pEje3VEB.js';
2
+ import { s as serveManyBase } from './serve-many-qnfynN1x.js';
3
3
  import '@upstash/qstash';
4
4
  import 'zod';
5
5
 
@@ -30,7 +30,7 @@ type WorkersHandlerArgs = [Request, Record<string, string | undefined>];
30
30
  * @param options workflow options
31
31
  * @returns
32
32
  */
33
- declare const serve: <TInitialPayload = unknown, TResult = unknown>(routeFunction: RouteFunction<TInitialPayload, TResult>, options?: PublicServeOptions<TInitialPayload>) => {
33
+ declare const serve: <TInitialPayload = unknown, TResult = unknown>(routeFunction: RouteFunction<TInitialPayload, TResult>, options?: WorkflowServeOptions<TInitialPayload, TResult>) => {
34
34
  fetch: (...args: PagesHandlerArgs | WorkersHandlerArgs) => Promise<Response>;
35
35
  };
36
36
  declare const createWorkflow: <TInitialPayload, TResult>(...params: Parameters<typeof serve<TInitialPayload, TResult>>) => InvokableWorkflow<TInitialPayload, TResult>;