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

Function tagDefaultOmit

packages/effect/src/Schema.ts:6122–6124  ·  view source on GitHub ↗
(literal: Tag)

Source from the content-addressed store, hash-verified

6120 * @since 4.0.0
6121 */
6122export function tagDefaultOmit<Tag extends SchemaAST.LiteralValue>(literal: Tag) {
6123 return tag(literal).pipe(withDecodingDefaultKey(Effect.succeed(literal), { encodingStrategy: "omit" }))
6124}
6125
6126/**
6127 * Type-level representation returned by {@link TaggedStruct}.

Callers

nothing calls this directly

Calls 4

tagFunction · 0.70
withDecodingDefaultKeyFunction · 0.70
pipeMethod · 0.65
succeedMethod · 0.45

Tested by

no test coverage detected