Skip to content

Rulvar API reference


Rulvar API reference / @rulvar/rulvar / toApprovalDecision

Function: toApprovalDecision() ​

ts
function toApprovalDecision(value, entryRef?): ApprovalDecision;

Defined in: packages/core/dist/index.d.ts

Normalizes a resolution value into an ApprovalDecision. Anything that is not an explicit allow is a deny: an approval never fails open.

Parameters ​

ParameterType
valueJson
entryRef?number

Returns ​

ApprovalDecision