Skip to content

Commit 1b2b933

Browse files
authored
Merge pull request #69 from takker99:deleted-pages
feat(api): Add types for /api/deleted-pages/:projectname/:pageid
2 parents 19cc3eb + 9bfe1eb commit 1b2b933

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import type { ProjectId } from "../../../base.ts";
2+
import type { Page } from "../../pages/project/title.ts";
3+
4+
/** The response type of /api/deleted-pages/:projectname/:pageid */
5+
export interface DeletedPage
6+
extends Pick<Page, "id" | "title" | "image" | "lines"> {
7+
/** The project id */
8+
projectId: ProjectId;
9+
10+
/** The created time of the page */
11+
created: null;
12+
/** The updated time of the page */
13+
updated: null;
14+
}

rest.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ export * from "./error.ts";
99
export * from "./stream-event.ts";
1010

1111
export * from "./api/commits/project/pageId.ts";
12+
export * from "./api/deleted-pages/project/pageId.ts";
1213
export * from "./api/embed-text/twitter.ts";
1314
export * from "./api/embed-text/url.ts";
1415
export * from "./api/page-data/export/project.ts";

0 commit comments

Comments
 (0)