/** * Pagination interface */ import { HttpErrorResponse } from '@angular/common/http'; export interface SingPagination { readonly nextCursor: string; readonly totalItems: number; } /** * Error interface which represents the expected server response in case of an error */ export interface SingError { readonly code: number; readonly title: string; readonly detail: string; readonly params?: any; } /** * A generic interface to wrap all HTTP response. */ export interface SingHttpResponse { readonly data?: T | T[]; readonly pagination?: SingPagination; } export interface SingHttpErrorResponse extends HttpErrorResponse { readonly errors?: SingError[]; } //# sourceMappingURL=sing-http-response.d.ts.map