Skip to content

Commit b8c52a6

Browse files
authored
chore(types): use DeepnoteFile and DeepnoteBlock when creating new project (#141)
1 parent 41a2a32 commit b8c52a6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/notebooks/deepnote/deepnoteExplorerView.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import { IDeepnoteNotebookManager } from '../types';
88
import { DeepnoteTreeDataProvider } from './deepnoteTreeDataProvider';
99
import { type DeepnoteTreeItem, DeepnoteTreeItemType, type DeepnoteTreeItemContext } from './deepnoteTreeItem';
1010
import { generateUuid } from '../../platform/common/uuid';
11+
import { DeepnoteBlock, DeepnoteFile } from '@deepnote/blocks';
1112

1213
/**
1314
* Manages the Deepnote explorer tree view and related commands
@@ -213,7 +214,7 @@ export class DeepnoteExplorerView {
213214
const projectId = generateUuid();
214215
const notebookId = generateUuid();
215216

216-
const firstBlock = {
217+
const firstBlock: DeepnoteBlock = {
217218
blockGroup: generateUuid(),
218219
content: '',
219220
executionCount: 0,
@@ -225,7 +226,7 @@ export class DeepnoteExplorerView {
225226
version: 1
226227
};
227228

228-
const projectData = {
229+
const projectData: DeepnoteFile = {
229230
version: '1.0.0',
230231
metadata: {
231232
createdAt: new Date().toISOString(),

0 commit comments

Comments
 (0)