(success: S)
| 97 | * accumulated since the last drain (V3: mid-stream invalidation). |
| 98 | */ |
| 99 | export const StreamResponseChunk = <S extends S.Top>(success: S) => |
| 100 | S.Union([ |
| 101 | S.Struct({ _tag: S.Literal("value"), value: success }), |
| 102 | S.Struct({ _tag: S.Literal("metadata"), metadata: CommandMetaData }), |
| 103 | S.Struct({ _tag: S.Literal("done"), metadata: CommandMetaData }) |
| 104 | ]) |
| 105 | |
| 106 | export type StreamResponseChunk<A> = |
| 107 | | { readonly _tag: "value"; readonly value: A } |
no outgoing calls
no test coverage detected
searching dependent graphs…