// Valid sequential tasks
const validSequence: SequentialTasks<[
Task<{name: string}, {id: number, name: string}>,
Task<{id: number, name: string}, {result: string}>
]> = [fetchUser, processUser]
// Invalid: output/input types don't match
const invalidSequence: SequentialTasks<[
Task<{name: string}, {id: number}>,
Task<{email: string}, {result: string}> // Error: needs {id: number}
]> = [fetchUser, processEmail] // TypeScript error
Type constraint for sequential task execution where each task's output becomes the next task's input.
This utility type ensures type safety in task pipelines by verifying that:
Used internally by DurableExecutor.sequentialTasks to provide compile-time type checking for sequential task pipelines.