(options: {
readonly _tag: Tag
readonly payloadSchema: Payload
readonly successSchema: Success
readonly errorSchema: Error
readonly annotations: Context.Context<never>
readonly idempotencyKey: (payload: Payload["Type"]) => string
readonly suspendedRetrySchedule?: Schedule.Schedule<any, unknown> | undefined
})
| 399 | } |
| 400 | |
| 401 | const makeProto = < |
| 402 | const Tag extends string, |
| 403 | Payload extends AnyStructSchema, |
| 404 | Success extends Schema.Top, |
| 405 | Error extends Schema.Top |
| 406 | >(options: { |
| 407 | readonly _tag: Tag |
| 408 | readonly payloadSchema: Payload |
| 409 | readonly successSchema: Success |
| 410 | readonly errorSchema: Error |
| 411 | readonly annotations: Context.Context<never> |
| 412 | readonly idempotencyKey: (payload: Payload["Type"]) => string |
| 413 | readonly suspendedRetrySchedule?: Schedule.Schedule<any, unknown> | undefined |
| 414 | }): Workflow<Tag, Payload, Success, Error> => { |
| 415 | function Workflow() {} |
| 416 | Object.setPrototypeOf(Workflow, Proto) |
| 417 | Object.assign(Workflow, options) |
| 418 | return Workflow as any |
| 419 | } |
| 420 | |
| 421 | /** |
| 422 | * Creates a durable workflow definition with schemas, annotations, and |
no test coverage detected