Skip to content

Commit

Permalink
✨ Add types of project backup data
Browse files Browse the repository at this point in the history
  • Loading branch information
takker99 committed Jul 25, 2021
1 parent 0eeee56 commit ea3f7a9
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions scrapbox.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,31 @@ export type LinksResponse =
/** ページ内のリンク */ links: string[];
}[];

export type ProjectBackup = {
name: string;
displayName: string;
exported: number;
pages: {
id: string;
title: string;
created: number;
updated: number;
lines: string[];
};
};
export type ProjectBackupWithMetadata = {
name: string;
displayName: string;
exported: number;
pages: {
id: string;
title: string;
created: number;
updated: number;
lines: { text: string; updated: number; created: number }[];
};
};

export type Layout =
| "list"
| "page"
Expand Down

0 comments on commit ea3f7a9

Please sign in to comment.