@temporal-contract/client
v0.0.7
Published
Client utilities with Result/Future pattern for consuming temporal-contract workflows
Downloads
752
Maintainers
Readme
@temporal-contract/client
Type-safe client for consuming Temporal workflows
Installation
pnpm add @temporal-contract/client @temporal-contract/contract @temporalio/client zodQuick Example
import { TypedClient } from '@temporal-contract/client';
import { Connection } from '@temporalio/client';
const connection = await Connection.connect({ address: 'localhost:7233' });
const client = TypedClient.create(myContract, { connection });
// Execute workflow (fully typed!)
const result = await client.executeWorkflow('processOrder', {
workflowId: 'order-123',
args: { orderId: 'ORD-123' }
});Documentation
📖 Read the full documentation →
License
MIT
