API reference / @evolu/common / Redacted / revealRedacted

Function: revealRedacted()

function revealRedacted<A>(redacted): A;

Defined in: packages/common/src/Redacted.ts:89

Reveals the original value from a Redacted wrapper.

This is a separate function rather than a method on Redacted to make access visually explicit and easy to grep in code reviews. Accessing sensitive values should feel intentional, not convenient.

Type Parameters

Type Parameter
A

Parameters

ParameterType
redactedRedacted<A>

Returns

A

Was this page helpful?