@temporal-contract/contract
v0.2.0
Published
Contract builder for temporal-contract
Maintainers
Readme
@temporal-contract/contract
Contract builder and type definitions for Temporal workflows and activities
Installation
pnpm add @temporal-contract/contract zodQuick Example
import { defineContract } from "@temporal-contract/contract";
import { z } from "zod";
export const myContract = defineContract({
taskQueue: "orders",
workflows: {
processOrder: {
input: z.object({ orderId: z.string() }),
output: z.object({ success: z.boolean() }),
activities: {
/* ... */
},
},
},
});Documentation
📖 Read the full documentation →
License
MIT
