notion-types
Advanced tools
Comparing version 1.3.1 to 1.3.2
@@ -10,7 +10,12 @@ import { ID, Color, Decoration, Role } from './core'; | ||
id: ID; | ||
type: BlockType; | ||
properties?: any; | ||
format?: object; | ||
content?: ID[]; | ||
space_id?: ID; | ||
parent_id: ID; | ||
parent_table: string | 'space' | 'block' | 'table'; | ||
version: number; | ||
created_time: number; | ||
last_edited_time: number; | ||
parent_id: ID; | ||
parent_table: string | 'space' | 'block' | 'table'; | ||
alive: boolean; | ||
@@ -21,6 +26,2 @@ created_by_table: string; | ||
last_edited_by_id: ID; | ||
space_id?: ID; | ||
properties?: any; | ||
content?: ID[]; | ||
type: BlockType; | ||
} | ||
@@ -27,0 +28,0 @@ export interface BaseTextBlock extends BaseBlock { |
@@ -25,2 +25,3 @@ /** UUID */ | ||
export declare type CodeFormat = ['c']; | ||
export declare type UnderlineFormat = ['_']; | ||
export declare type LinkFormat = ['a', string]; | ||
@@ -39,5 +40,5 @@ export declare type ColorFormat = ['h', Color]; | ||
} | ||
export declare type SubDecoration = BoldFormat | ItalicFormat | StrikeFormat | CodeFormat | LinkFormat | ColorFormat | DateFormat | UserFormat | InlineEquationFormat | PageFormat | ExternalLinkFormat; | ||
export declare type SubDecoration = BoldFormat | ItalicFormat | StrikeFormat | CodeFormat | UnderlineFormat | LinkFormat | ColorFormat | DateFormat | UserFormat | InlineEquationFormat | PageFormat | ExternalLinkFormat; | ||
export declare type BaseDecoration = [string]; | ||
export declare type AdditionalDecoration = [string, SubDecoration[]]; | ||
export declare type Decoration = BaseDecoration | AdditionalDecoration; |
{ | ||
"name": "notion-types", | ||
"version": "1.3.1", | ||
"version": "1.3.2", | ||
"description": "TypeScript types for core Notion data structures.", | ||
@@ -13,3 +13,3 @@ "repository": "saasify-sh/notion-kit", | ||
}, | ||
"gitHead": "e5532c42ec118797bb5c0e38e61b61dc2a32f567" | ||
"gitHead": "cb2f95c77ce41647604e57bdbc8913c9868f8388" | ||
} |
@@ -75,7 +75,14 @@ import { ID, Color, Decoration, Role } from './core' | ||
id: ID | ||
type: BlockType | ||
properties?: any | ||
format?: object | ||
content?: ID[] | ||
space_id?: ID | ||
parent_id: ID | ||
parent_table: string | 'space' | 'block' | 'table' | ||
version: number | ||
created_time: number | ||
last_edited_time: number | ||
parent_id: ID | ||
parent_table: string | 'space' | 'block' | 'table' | ||
alive: boolean | ||
@@ -86,6 +93,2 @@ created_by_table: string | ||
last_edited_by_id: ID | ||
space_id?: ID | ||
properties?: any | ||
content?: ID[] | ||
type: BlockType | ||
} | ||
@@ -92,0 +95,0 @@ |
@@ -79,2 +79,3 @@ // Base Types | ||
export type CodeFormat = ['c'] | ||
export type UnderlineFormat = ['_'] | ||
export type LinkFormat = ['a', string] | ||
@@ -100,2 +101,3 @@ export type ColorFormat = ['h', Color] | ||
| CodeFormat | ||
| UnderlineFormat | ||
| LinkFormat | ||
@@ -102,0 +104,0 @@ | ColorFormat |
Sorry, the diff of this file is not supported yet
178421
1361
40528