Creates a ChannelWrite that specifies how to write values to channels. This is used to define how nodes send output to channels.
writeTo(channels: string[], writes: Record<string, unknown>): ChannelWrite// Write to multiple channels
const write = Channel.writeTo(["output", "state"]);
// Write with specific values
const write = Channel.writeTo(["output"], {
state: "completed",
result: calculateResult()
});
// Write with a transformation function
const write = Channel.writeTo(["output"], {
result: (x) => processResult(x)
});