(
statuses: Map<number, {
readonly stream?: HttpApiSchema.StreamSchema | undefined
bufferedContentTypes: Set<string>
noContent: boolean
}>,
status: number
)
| 1240 | } |
| 1241 | |
| 1242 | function getStatusEntry( |
| 1243 | statuses: Map<number, { |
| 1244 | readonly stream?: HttpApiSchema.StreamSchema | undefined |
| 1245 | bufferedContentTypes: Set<string> |
| 1246 | noContent: boolean |
| 1247 | }>, |
| 1248 | status: number |
| 1249 | ) { |
| 1250 | let entry = statuses.get(status) |
| 1251 | if (entry === undefined) { |
| 1252 | entry = { bufferedContentTypes: new Set(), noContent: false } |
| 1253 | statuses.set(status, entry) |
| 1254 | } |
| 1255 | return entry |
| 1256 | } |
| 1257 | |
| 1258 | function validateResponseExclusivity( |
| 1259 | schemas: ReadonlyArray<Schema.Constraint>, |
no test coverage detected