Skip to content

Rulvar API reference


Rulvar API reference / @rulvar/core / maskSecretsDeep

Function: maskSecretsDeep() ​

ts
function maskSecretsDeep<T>(value): T;

Defined in: packages/core/src/l0/serialization.ts:196

Deep-masks every string value in a JSON tree; non-strings pass through. Returns the input identity when nothing matched, so the default-on policy costs no allocation on clean events.

Type Parameters ​

Type Parameter
T

Parameters ​

ParameterType
valueT

Returns ​

T