Function: mustBeLast()
ts
function mustBeLast(ref): boolean;Defined in: validate/validate-operations.ts:139
Whether the operation has to be the final directive in its chain. Handles counted video operations, so thumbs~5 reports true.
Parameters
| Parameter | Type |
|---|---|
ref | OperationRef |
Returns
boolean
See
https://uploadcare.com/docs/transformations/video-encoding/#operation-thumbs
Example
ts
mustBeLast('json') // → true
mustBeLast(thumbs(5)) // → true