MCPcopy
hub / github.com/Effect-TS/effect / Redacted

Function Redacted

packages/effect/src/Schema.ts:5879–5889  ·  view source on GitHub ↗
(value: Value)

Source from the content-addressed store, hash-verified

5877 * @since 3.10.0
5878 */
5879export function Redacted<Value extends Schema.Any>(value: Value): Redacted<Value> {
5880 return transform(
5881 value,
5882 RedactedFromSelf(typeSchema(asSchema(value))),
5883 {
5884 strict: true,
5885 decode: (i) => redacted_.make(i),
5886 encode: (a) => redacted_.value(a)
5887 }
5888 )
5889}
5890
5891/**
5892 * @category Duration constructors

Callers

nothing calls this directly

Calls 6

typeSchemaFunction · 0.85
asSchemaFunction · 0.85
transformInterface · 0.70
RedactedFromSelfFunction · 0.70
makeMethod · 0.65
valueMethod · 0.45

Tested by

no test coverage detected