-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtypes.d.ts
49 lines (46 loc) · 831 Bytes
/
types.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
interface Content {
doctype: 'markdown'
body: string
}
interface PageEntry {
__id: string
title: string
tags: string[]
starred: boolean
content: Content
tags: string[]
parent_id: string | null
starred: boolean
pinned: boolean
}
interface NebulaAsset {
name: string
asset_url: string
nb_protocol_url: string
is_new: boolean
}
interface PageSimple {
__id: string
parent_id: string | null
title: string
pinned: boolean
starred: boolean
sub_pages: PageSimple[]
}
interface NotebookInfo {
__id: string
name: string
author: string | null
thumbnail: string | null
description: string
created_at: string
last_accessed_at: string
pages: PagesSimple[]
trash_pages: TrashPage[]
assets: string[]
}
interface TrashPage {
__id: string
title: string
days_remaining: number
}