Skip to content

Type Alias: RedactFn()

ts
type RedactFn = (data) => unknown;

Defined in: packages/core/src/presenter/RedactEngine.ts:80

A compiled redaction function.

Applies PII masking to an object. Uses structuredClone internally to preserve the original data for UI blocks and rules (Late Guillotine pattern).

Parameters

ParameterType
dataunknown

Returns

unknown