UNPKG

standard-response

Version:
22 lines (21 loc) 535 B
import { StandardError } from "./StandardError"; export declare class Jsonizable { toJson(): string; } /** * Standard response with data of type T */ export declare class StandardResponseWithData<T> extends Jsonizable { constructor(data: any); errorMessage: string; data: T | null; error: StandardError; } /** * Standard response with data of type any */ export declare class StandardResponse extends Jsonizable { errorMessage: string; data: any | null; error: StandardError; }