Skip to content

Commit 9a1ece7

Browse files
committed
feat: NotionBlock Type add
1 parent 6a47dcb commit 9a1ece7

File tree

1 file changed

+22
-1
lines changed
  • packages/notion-to-jsx/src/types

1 file changed

+22
-1
lines changed

packages/notion-to-jsx/src/types/index.ts

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@ export interface NotionBlock {
1212
| 'numbered_list_item'
1313
| 'code'
1414
| 'image'
15-
| 'bookmark';
15+
| 'bookmark'
16+
| 'table'
17+
| 'table_row'
18+
| 'quote';
1619
paragraph?: {
1720
rich_text: RichTextItem[];
1821
color: string;
@@ -52,4 +55,22 @@ export interface NotionBlock {
5255
url: string;
5356
caption: RichTextItem[];
5457
};
58+
table?: {
59+
table_width: number;
60+
has_column_header: boolean;
61+
has_row_header: boolean;
62+
};
63+
table_row?: {
64+
cells: RichTextItem[][];
65+
};
66+
quote?: {
67+
rich_text: RichTextItem[];
68+
color: string;
69+
};
70+
children?: NotionBlock[];
71+
has_children?: boolean;
72+
parent?: {
73+
type: string;
74+
[key: string]: any;
75+
};
5576
}

0 commit comments

Comments
 (0)