MCPcopy Index your code
hub / github.com/deepnote/deepnote / assertSqlCellVariableType

Function assertSqlCellVariableType

packages/blocks/src/blocks/sql-blocks.ts:126–135  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

124}
125
126function 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}

Calls

no outgoing calls

Tested by

no test coverage detected