@snail-js/api
Version:
Http Request with Decorators Api, build on axios
14 lines (13 loc) • 420 B
TypeScript
export interface PaginationData<T> {
total: number;
page: number;
records: T[];
}
export type ResponseJsonData = Record<string, any> | object;
export type SpecialResponseData = string | ArrayBuffer | Blob | FormData;
export type StandardResponseData<T = any> = {
code: number;
message: string;
data: T;
};
export type ResponseData = ResponseJsonData | StandardResponseData | SpecialResponseData;