import { Document , Model } from "mongoose" ; import { Maybe } from "../../util" ; export interface IStatDocument extends Document { key : string ; value : number ; } export interface IStatModel extends Model < IStatDocument > { inc ( key , amount ? ) : Promise < void > ; get ( key ) : Promise < Maybe < number > > ; set ( key , value ) : Promise < void > ; }