(schema: Schema.Top | undefined, name: string)
| 1081 | }) |
| 1082 | |
| 1083 | function addSlot(schema: Schema.Top | undefined, name: string) { |
| 1084 | if (schema === undefined) return undefined |
| 1085 | const slot = { name, schema } |
| 1086 | slots.push(slot) |
| 1087 | return slot |
| 1088 | } |
| 1089 | |
| 1090 | function renderSuccess(schema: Schema.Top, name: string) { |
| 1091 | if (!isStreamSchema(schema)) return { source: addSlot(schema, name)!.name } |
no test coverage detected