Skip to content

Function: rawOp() ​

ts
function rawOp(name, ...params): CdnOperation;

Defined in: ops/raw-op.ts:14

Escape hatch: builds an arbitrary operation without any validation. Useful for internal directives (@clib, @finfo) and operations the library does not know about yet.

Parameters ​

ParameterType
namestring
...paramsstring[]

Returns ​

CdnOperation

See ​

https://uploadcare.com/docs/cdn-operations/

Example ​

ts
rawOp('@clib', 'my-lib', '1.0.0') // → -/@clib/my-lib/1.0.0/