isValidJobStatus
Defined in: packages/core/src/jobs/guards.ts:73
Type guard to check if a value is a valid job status.
Validates that a value is one of the five valid job statuses: 'pending',
'processing', 'completed', 'failed', or 'cancelled'. Useful for runtime validation
of user input or external data.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
value | unknown | The value to check |
Returns
Section titled “Returns”value is JobStatusType
true if the value is a valid JobStatusType, narrowing the type