Skip to content

Commit 99e86c3

Browse files
committed
tighten typing in converotrs
1 parent ebf8518 commit 99e86c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/notebooks/deepnote/converters/inputConverters.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export abstract class BaseInputBlockConverter<T extends z.ZodObject> implements
2828
* Clears block.content, parses schema, deletes DEEPNOTE_VSCODE_RAW_CONTENT_KEY,
2929
* and merges metadata with updates.
3030
*/
31-
protected updateBlockMetadata(block: DeepnoteBlock, updates: Record<string, unknown>): void {
31+
protected updateBlockMetadata(block: DeepnoteBlock, updates: Partial<z.infer<T>>): void {
3232
block.content = '';
3333

3434
const existingMetadata = this.schema().safeParse(block.metadata);

0 commit comments

Comments
 (0)