From fc01803968264dce8fa5ca051e3238280b575da3 Mon Sep 17 00:00:00 2001 From: zkldi Date: Sat, 3 Apr 2021 21:29:07 +0100 Subject: [PATCH] Add CounterDocument --- common/js/types.d.ts | 4 ++++ common/src/types.ts | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/common/js/types.d.ts b/common/js/types.d.ts index 1f6c8dc86..5462accc9 100644 --- a/common/js/types.d.ts +++ b/common/js/types.d.ts @@ -2,6 +2,10 @@ import { IObjectID } from "monk"; /** * All MongoDB Documents require this field, or atleast they all have them in ktchi's DB. */ +export interface CounterDocument { + counterName: string; + value: integer; +} export interface MongoDBDocument { _id?: IObjectID; } diff --git a/common/src/types.ts b/common/src/types.ts index c15435554..417c9d694 100644 --- a/common/src/types.ts +++ b/common/src/types.ts @@ -3,6 +3,11 @@ import { IObjectID } from "monk"; /** * All MongoDB Documents require this field, or atleast they all have them in ktchi's DB. */ + +export interface CounterDocument { + counterName: string; + value: integer; +} export interface MongoDBDocument { _id?: IObjectID; }