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

Class TaggedRequestClass

packages/effect/src/Schema.ts:10651–10671  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10649 {
10650 const taggedFields = extendFields({ _tag: getClassTag(tag) }, options.payload)
10651 return class TaggedRequestClass extends makeClass({
10652 kind: "TaggedRequest",
10653 identifier: identifier ?? tag,
10654 schema: Struct(taggedFields),
10655 fields: taggedFields,
10656 Base: Request.Class<any, any, { readonly _tag: string }>,
10657 annotations
10658 }) {
10659 static _tag = tag
10660 static success = options.success
10661 static failure = options.failure
10662 get [symbolSerializable]() {
10663 return this.constructor
10664 }
10665 get [symbolWithResult]() {
10666 return {
10667 failure: options.failure,
10668 success: options.success
10669 }
10670 }
10671 } as any
10672 }
10673
10674// -------------------------------------------------------------------------------------------------

Callers

nothing calls this directly

Calls 1

StructFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…