MCPcopy Index your code
hub / github.com/Effect-TS/effect / TaggedStruct

Function TaggedStruct

packages/effect/src/Schema.ts:3009–3012  ·  view source on GitHub ↗
(
  value: Tag,
  fields: Fields
)

Source from the content-addressed store, hash-verified

3007 * @since 3.10.0
3008 */
3009export const TaggedStruct = <Tag extends AST.LiteralValue, Fields extends Struct.Fields>(
3010 value: Tag,
3011 fields: Fields
3012): TaggedStruct<Tag, Fields> => Struct({ _tag: tag(value), ...fields })
3013
3014/**
3015 * @category api interface

Callers 1

Schema.tsFile · 0.85

Calls 2

StructFunction · 0.70
tagFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…