Skip to content

Commit e9f729b

Browse files
committed
♻️ Convert type to interface
1 parent 9a71056 commit e9f729b

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

api/error.ts

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1-
export type NotMemberError = {
2-
name: "NotMemberError";
1+
export interface ErrorLike {
2+
name: string;
33
message: string;
4-
};
4+
}
5+
export interface NotMemberError extends ErrorLike {
6+
name: "NotMemberError";
7+
}
58

6-
export type NotFoundError = {
9+
export interface NotFoundError extends ErrorLike {
710
name: "NotFoundError";
8-
message: string;
9-
};
11+
}

0 commit comments

Comments
 (0)