UNPKG

ts-mean

Version:

Boilerplate for a TS-MEAN App

8 lines (7 loc) 476 B
import { User } from './user.model'; import { CreateResponse, DatabaseResponse, ReadResponse } from '@tsmean/dbadapter'; export declare namespace userDAO { function create(user: User, password: string, cb: (dbResponse: DatabaseResponse<CreateResponse>) => void): void; function getByMail(email: string, cb: (dbResponse: DatabaseResponse<ReadResponse>) => void): void; function getById(id: string, cb: (dbResponse: DatabaseResponse<ReadResponse>) => void): void; }