Skip to content

rulvar API reference


rulvar API reference / @rulvar/rulvar / maskSecretsDeep

Function: maskSecretsDeep()

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

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

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