(schema: Schema.Top)
| 976 | } |
| 977 | |
| 978 | function isStreamSchema(schema: Schema.Top): schema is HttpApiSchema.StreamSchema { |
| 979 | return "_tag" in schema && (schema._tag === "StreamSse" || schema._tag === "StreamUint8Array") |
| 980 | } |
| 981 | |
| 982 | function streamDataSchema(schema: Extract<HttpApiSchema.StreamSchema, { readonly _tag: "StreamSse" }>) { |
| 983 | return Schema.make(streamDataAst(Schema.toType(schema.events).ast)) |
no outgoing calls
no test coverage detected