MCPcopy Index your code
hub / github.com/anomalyco/opencode / isStreamSchema

Function isStreamSchema

packages/httpapi-codegen/src/index.ts:978–980  ·  view source on GitHub ↗
(schema: Schema.Top)

Source from the content-addressed store, hash-verified

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

Callers 9

onEndpointFunction · 0.85
assertPromiseEndpointFunction · 0.85
renderPromiseTypesFunction · 0.85
renderPromiseClientFunction · 0.85
normalizeTransportFunction · 0.85
responseSchemasFunction · 0.85
isDataEnvelopeFunction · 0.85
streamEffectPortableFunction · 0.85
renderSuccessFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected