(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
})
| 428 | } |
| 429 | |
| 430 | const makeProto = < |
| 431 | const Tag extends string, |
| 432 | Payload extends AnyStructSchema, |
| 433 | Success extends Schema.Top, |
| 434 | Error extends Schema.Top |
| 435 | >(options: { |
| 436 | readonly _tag: Tag |
| 437 | readonly payloadSchema: Payload |
| 438 | readonly successSchema: Success |
| 439 | readonly errorSchema: Error |
| 440 | readonly annotations: Context.Context<never> |
| 441 | readonly idempotencyKey: (payload: Payload["Type"]) => string |
| 442 | readonly suspendedRetrySchedule?: Schedule.Schedule<any, unknown> | undefined |
| 443 | }): Workflow<Tag, Payload, Success, Error> => { |
| 444 | function Workflow() {} |
| 445 | Object.setPrototypeOf(Workflow, Proto) |
| 446 | Object.assign(Workflow, options) |
| 447 | return Workflow as any |
| 448 | } |
| 449 | |
| 450 | /** |
| 451 | * Creates a durable workflow definition with schemas, annotations, and |
no test coverage detected