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

Function RedactedFromSelf

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

Source from the content-addressed store, hash-verified

5846 * @since 3.10.0
5847 */
5848export const RedactedFromSelf = <Value extends Schema.Any>(value: Value): RedactedFromSelf<Value> =>
5849 declare(
5850 [value],
5851 {
5852 decode: (value) => redactedParse(ParseResult.decodeUnknown(value)),
5853 encode: (value) => redactedParse(ParseResult.encodeUnknown(value))
5854 },
5855 {
5856 typeConstructor: { _tag: "effect/Redacted" },
5857 description: "Redacted(<redacted>)",
5858 pretty: () => () => "Redacted(<redacted>)",
5859 arbitrary: redactedArbitrary,
5860 equivalence: redacted_.getEquivalence
5861 }
5862 )
5863
5864/**
5865 * @category api interface

Callers 1

RedactedFunction · 0.70

Calls 2

declareInterface · 0.85
redactedParseFunction · 0.85

Tested by

no test coverage detected