Interface: OperationDependency
Defined in: validate/dependencies.ts:49
One edge of the dependency graph: a related operation and where it sits.
See
https://uploadcare.com/docs/transformations/image/
Example
ts
// → { kind: 'modifier', operation: { name: 'font', … }, index: 0, reason: '…' }
operationInputs([font({ size: 24 }), text(['1x1'], 'top', 'Hi')], 1)[0]Properties
index
ts
index: number;Defined in: validate/dependencies.ts:55
Its index in the chain that was queried.
kind
ts
kind: DependencyKind;Defined in: validate/dependencies.ts:51
Whether the edge is positional state or a chain-wide limit.
operation
ts
operation: CdnOperation;Defined in: validate/dependencies.ts:53
The operation on the other end of the edge.
reason
ts
reason: string;Defined in: validate/dependencies.ts:57
Why the two are related, for diagnostics and tooling.