import { Document, Model } from "mongoose"; export interface IUser { uId: String; capital: number; dateOfEntry?: Date; lastUpdated?: Date; } export interface IUserDocument extends IUser, Document { setLastUpdated: (this: IUserDocument) => Promise; removeUserCapital: (this: IUserDocument, { cost }: { cost: number; }) => Promise; addUserCapital: (this: IUserDocument, { amountToAdd }: { amountToAdd: number; }) => Promise; } export interface IUserModel extends Model { findOneOrCreate: (this: IUserModel, { uId }: { uId: string; }) => Promise; } //# sourceMappingURL=usersTypes.d.ts.map