Skip to content

Commit ea3f7a9

Browse files
committed
✨ Add types of project backup data
1 parent 0eeee56 commit ea3f7a9

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

scrapbox.d.ts

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,31 @@ export type LinksResponse =
172172
/** ページ内のリンク */ links: string[];
173173
}[];
174174

175+
export type ProjectBackup = {
176+
name: string;
177+
displayName: string;
178+
exported: number;
179+
pages: {
180+
id: string;
181+
title: string;
182+
created: number;
183+
updated: number;
184+
lines: string[];
185+
};
186+
};
187+
export type ProjectBackupWithMetadata = {
188+
name: string;
189+
displayName: string;
190+
exported: number;
191+
pages: {
192+
id: string;
193+
title: string;
194+
created: number;
195+
updated: number;
196+
lines: { text: string; updated: number; created: number }[];
197+
};
198+
};
199+
175200
export type Layout =
176201
| "list"
177202
| "page"

0 commit comments

Comments
 (0)