voxolith

clampToSpec()

Clamp and snap a value to what its spec allows.

function clampToSpec(spec: ParamSpec, value: unknown): string | number | boolean;

Defined in: engine/src/share.ts:158

Parameters

ParameterType
specParamSpec
valueunknown

Returns

string | number | boolean

On this page