| 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 | // ------------------------------------------------------------------------------------------------- |
nothing calls this directly
no test coverage detected
searching dependent graphs…