mirror of
https://github.com/claude-code-best/claude-code.git
synced 2026-06-18 14:25:51 +00:00
feat: 全部类型问题解决
This commit is contained in:
@@ -171,13 +171,13 @@ export async function readNotebook(
|
||||
const notebook = jsonParse(content) as NotebookContent
|
||||
const language = notebook.metadata.language_info?.name ?? 'python'
|
||||
if (cellId) {
|
||||
const cell = notebook.cells.find(c => c.id === cellId)
|
||||
const cell = notebook.cells.find((c: NotebookCell) => c.id === cellId)
|
||||
if (!cell) {
|
||||
throw new Error(`Cell with ID "${cellId}" not found in notebook`)
|
||||
}
|
||||
return [processCell(cell, notebook.cells.indexOf(cell), language, true)]
|
||||
}
|
||||
return notebook.cells.map((cell, index) =>
|
||||
return notebook.cells.map((cell: NotebookCell, index: number) =>
|
||||
processCell(cell, index, language, false),
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user