From da7ed0116b503dd3c80517115fda3f95bf4a22e3 Mon Sep 17 00:00:00 2001 From: zkldi Date: Wed, 31 Mar 2021 12:36:47 +0100 Subject: [PATCH] I don't like the workflow of compilation we have here. --- common/js/types.d.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/common/js/types.d.ts b/common/js/types.d.ts index 48336ecda..b9a3b9053 100644 --- a/common/js/types.d.ts +++ b/common/js/types.d.ts @@ -339,18 +339,18 @@ export interface PublicUserDocument extends MongoDBDocument { about: string; custompfp: boolean; custombanner: boolean; - ratings: Ratings; - lampRatings: Ratings; - customRatings: CustomRatings; - classes?: UserClasses; permissions: { admin?: boolean; }; clan: string | null; } -declare type UserClasses = Partial>; -declare type PlaytypeClasses = Partial>; -declare type ClassInfo = Partial>; +export interface UserGameStats extends MongoDBDocument { + game: T; + playtype: Playtypes[T]; + rating: number; + lampRating: number; + customRatings: Record; +} /** * PrivateUserDocument is the document indicating that we've returned everything about the user * from the DB - including their private information.