(value: string)
| 124 | } |
| 125 | |
| 126 | function assertSqlCellVariableType(value: string): SqlCellVariableType { |
| 127 | const result = sqlCellVariableTypeSchema.safeParse(value) |
| 128 | if (!result.success) { |
| 129 | throw new InvalidValueError( |
| 130 | `Invalid deepnote_return_variable_type: expected one of ${SQL_CELL_VARIABLE_TYPES.join(', ')}`, |
| 131 | { value } |
| 132 | ) |
| 133 | } |
| 134 | return result.data |
| 135 | } |
no outgoing calls
no test coverage detected