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

Function tag

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

Source from the content-addressed store, hash-verified

6085 * @since 3.10.0
6086 */
6087export function tag<Tag extends SchemaAST.LiteralValue>(literal: Tag): tag<Tag> {
6088 return Literal(literal).pipe(withConstructorDefault(Effect.succeed(literal)))
6089}
6090
6091/**
6092 * Creates a literal `_tag` schema that is omitted from encoded output.

Callers 3

tagDefaultOmitFunction · 0.70
TaggedStructFunction · 0.70
Schema.tsFile · 0.70

Calls 4

LiteralFunction · 0.70
withConstructorDefaultFunction · 0.70
pipeMethod · 0.65
succeedMethod · 0.45

Tested by

no test coverage detected