Basic

export type BasicSuccessResponse = { 
    statusCode: number; 
    success: boolean; 
};
export type BasicUpdatedResponse = BasicSuccessResponse & {  updated: boolean; };
export class BasicError extends Error {
  status: number;

  constructor(message: string, status: number) {
    super(message);
    this.status = status;
  }
}
export interface BasicObject<T> {
    [key: string]: T;
}
export type BasicAnyObject = BasicObject<any>;

Last updated