MCPcopy Create free account
hub / github.com/Effect-TS/effect / redact

Function redact

packages/effect/src/Redactable.ts:131–134  ·  view source on GitHub ↗
(u: unknown)

Source from the content-addressed store, hash-verified

129 * @since 3.10.0
130 */
131export function redact(u: unknown): unknown {
132 if (isRedactable(u)) return getRedacted(u)
133 return u
134}
135
136/**
137 * Returns the result of calling `[symbolRedactable]` on a value that is

Callers 8

toJsonFunction · 0.90
formatJsonFunction · 0.90
toJSONFunction · 0.90
inspectFunction · 0.90
toJSONFunction · 0.90
redactHeadersFunction · 0.90
effect.tsFile · 0.90
valueFunction · 0.85

Calls 2

isRedactableFunction · 0.85
getRedactedFunction · 0.85

Tested by

no test coverage detected