UNPKG

ts-mean

Version:

Boilerplate for a TS-MEAN App

23 lines (22 loc) 423 B
export interface DatabaseResponse<T> { error: DatabaseError; data?: T; } export interface DatabaseError { code?: number; message: string; } export interface ReadResponse { uid: string; [x: string]: any; } export interface CreateResponse { uid: string; createTime: Date; [x: string]: any; } export interface UpdateResponse { uid: string; updateTime: Date; [x: string]: any; }