chore: PageableList 제너릭 타입 수정

This commit is contained in:
2025-03-27 16:33:39 +09:00
parent 89f31c4c6b
commit 050ce81481
4 changed files with 4 additions and 4 deletions
@@ -49,7 +49,7 @@ export const siteFormSchema = z.object({
});
export type SiteFormData = z.infer<typeof siteFormSchema>;
export type SiteList = PageableList<Site[]>;
export type SiteList = PageableList<Site>;
export interface SiteService {
getSiteList(params: SiteParams): Promise<SiteList>;
@@ -23,7 +23,7 @@ export const domainFormSchema = z.object({
export type Domain = z.infer<typeof domainSchema>;
export type DomainFormData = z.infer<typeof domainFormSchema>;
export type DomainList = PageableList<Domain[]>;
export type DomainList = PageableList<Domain>;
export interface DomainService {
getDomainList(params: DomainParams): Promise<DomainList>;
+1 -1
View File
@@ -21,7 +21,7 @@ export const ipFormSchema = z.object({
export type IP = z.infer<typeof ipSchema>;
export type IPFormData = z.infer<typeof ipFormSchema>;
export type IpList = PageableList<IP[]>;
export type IpList = PageableList<IP>;
export interface IpService {
getIpList(params: IpParams): Promise<IpList>;
+1 -1
View File
@@ -14,7 +14,7 @@ interface PageableConfig {
}
export interface PageableList<T> {
content: T;
content: T[];
pageable: PageableConfig;
sort: SortConfig;
totalPages: number;