Skip to content

Commit d655b64

Browse files
committed
🚚 Moved types about errrors to error.ts
1 parent 17b0a00 commit d655b64

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

api/error.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
export type NotMemberError = {
2+
name: "NotMemberError";
3+
message: string;
4+
};
5+
6+
export type NotFoundError = {
7+
name: "NotFoundError";
8+
message: string;
9+
};

scrapbox.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -111,15 +111,6 @@ export interface Project {
111111
plan?: string;
112112
}
113113

114-
export type NotMemberError = {
115-
name: "NotMemberError";
116-
message: string;
117-
};
118-
119-
export type NotFoundError = {
120-
name: "NotFoundError";
121-
message: string;
122-
};
123114

124115
/** the response type of https://scrpabox.io/api/projects/:projectname */
125116
export type ProjectResponse =

0 commit comments

Comments
 (0)