Skip to content

Commit f14e945

Browse files
KBandipoIfycode
authored andcommitted
refactor: restructure ApiHomeResponse to include success,message and data structure
1 parent b644b6c commit f14e945

File tree

1 file changed

+14
-10
lines changed

1 file changed

+14
-10
lines changed

src/@core/types/home.types.ts

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
export interface ApiHomeResponse {
2-
name: string;
3-
description: string;
4-
built_at: string;
5-
github: {
6-
repository: string;
7-
};
8-
contributors: {
9-
count: number;
10-
list: string[];
11-
};
2+
success: string;
3+
message: string;
4+
data: {
5+
name: string;
6+
description: string;
7+
built_at: string;
8+
github: {
9+
repository: string;
10+
};
11+
contributors: {
12+
count: number;
13+
list: string[];
14+
};
15+
}
1216
}

0 commit comments

Comments
 (0)