Skip to content

Commit 3e131d4

Browse files
authored
Merge pull request #34 from takker99/add-snapshot
✨ Add types for /api/page-snapshots/:projectname/:pageid
2 parents d883d6f + e3958a4 commit 3e131d4

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

response.ts

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -354,3 +354,23 @@ export interface CommitsResponse {
354354
/** 指定したページのcommits */
355355
commits: Commit[];
356356
}
357+
358+
/** the response type of /api/page-snapshots/:projectname/:pageid */
359+
export interface PageSnapshot {
360+
pageId: PageId;
361+
362+
/** 作成されているsnapshots */
363+
snapshots: Snapshot[];
364+
}
365+
366+
/** a page snapshot */
367+
export interface Snapshot {
368+
/** snapshotを撮ったときのページタイトル */
369+
title: string;
370+
371+
/** snapshotの作成日時 */
372+
created: UnixTime;
373+
374+
/** snapshotしたページ本文 */
375+
lines: BaseLine[];
376+
}

0 commit comments

Comments
 (0)