API reference › @evolu/common › Redacted › revealRedacted

function revealRedacted<A>(redacted: Redacted<A>): A;

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

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.

Throws when the wrapper was disposed or is a structured clone.