Hyperlinkv0.8.0-beta.28

Redacted

Redacted.valueconsteffect/Redacted.ts:244
<T>(self: Redacted<T>): T

Retrieves the original value from a Redacted instance. Use this function with caution, as it exposes the sensitive data.

When to use

Use when you need the underlying sensitive value at a trusted boundary.

Example (Retrieving a redacted value)

import { Redacted } from "effect"
import * as assert from "node:assert"

const API_KEY = Redacted.make("1234567890")

assert.equal(Redacted.value(API_KEY), "1234567890")
getters
export const value: <T>(self: Redacted<T>) => T = redacted.value
Referenced by 3 symbols