Skip to main content
Skip to main content

UnwrapWorkflowInputDataType

UnwrapWorkflowInputDataType: T extends ReturnWorkflow<infer TData, infer R, infer THooks> ? TData : never

Extract the raw type of the expected input data of a workflow.

Example

type WorkflowInputData = UnwrapWorkflowInputDataType<typeof myWorkflow>

Type Parameters

TReturnWorkflow<any, any, any>Required
Was this section helpful?