UNPKG

event-driven

Version:

makes building event-driven-architecture easy

17 lines (16 loc) 522 B
/// <reference types="mongoose/types/pipelinestage" /> /// <reference types="mongoose/types/error" /> /// <reference types="mongoose/types/connection" /> import { Document } from 'mongoose'; export interface UserDoc extends Document { username: string; hashedPassword: string; authorized: boolean; } export declare const User: import("mongoose").Model<UserDoc, {}, {}, {}>; export declare const createUser: (data: { username: string; hashedPassword: string; }) => Promise<UserDoc & { _id: any; }>;