Skip to main content

Function: redact()

redact<T>(value, extraKeys?): T

Defined in: src/utils/redact.ts:34

Deep-copy value with sensitive values replaced by REDACTED. Never mutates the input, tolerates cycles ([Circular]), and summarizes binary data instead of dumping it.

Type Parameters​

T​

T

Parameters​

value​

T

extraKeys?​

readonly string[] = []

additional keys to redact, on top of DEFAULT_REDACT_KEYS

Returns​

T