chore: PageableList 제너릭 타입 수정
This commit is contained in:
@@ -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>;
|
||||
|
||||
@@ -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>;
|
||||
|
||||
@@ -14,7 +14,7 @@ interface PageableConfig {
|
||||
}
|
||||
|
||||
export interface PageableList<T> {
|
||||
content: T;
|
||||
content: T[];
|
||||
pageable: PageableConfig;
|
||||
sort: SortConfig;
|
||||
totalPages: number;
|
||||
|
||||
Reference in New Issue
Block a user