From fc683dc7c834ee45d551002f6809266166fca8f2 Mon Sep 17 00:00:00 2001 From: zkldi Date: Mon, 10 May 2021 06:20:25 +0100 Subject: [PATCH] remove nonsense --- common/js/types.d.ts | 10 ---------- common/src/types.ts | 32 -------------------------------- 2 files changed, 42 deletions(-) diff --git a/common/js/types.d.ts b/common/js/types.d.ts index f6edfa95a..e9e70db0f 100644 --- a/common/js/types.d.ts +++ b/common/js/types.d.ts @@ -492,16 +492,6 @@ export interface MilestoneGroupDocument extends MongoDBDocument { name: string; desc: string; } -export interface QueryDocument extends MongoDBDocument { - query: Record; - queryID: string; - name: string; - desc: string; - byUser: integer; - timeAdded: integer; - timesUsed: integer; - forDatabase: "scores"; -} export declare type NotificationType = "clandisband" | "claninvite" | "goals" | "import" | "milestone" | "mrginvite" | "mrgkicked" | "mrgdisband" | "mrginviterejected"; export interface NotificationDocument extends MongoDBDocument { notifID: string; diff --git a/common/src/types.ts b/common/src/types.ts index 25dc3fac9..fcc086679 100644 --- a/common/src/types.ts +++ b/common/src/types.ts @@ -671,17 +671,6 @@ export interface MilestoneGroupDocument extends MongoDBDocument { desc: string; } -export interface QueryDocument extends MongoDBDocument { - query: Record; - queryID: string; - name: string; - desc: string; - byUser: integer; - timeAdded: integer; - timesUsed: integer; - forDatabase: "scores"; -} - export type NotificationType = | "clandisband" | "claninvite" @@ -758,27 +747,6 @@ export interface UserGameStats extends MongoDBD classes: Record; // bad } -// the bottom set of types are horrifically confusing. -// to ease this a bit, an example of what they're representing is below. - -/* - "classes" : { - "iidx" : { - "SP" : { - "dan" : "kaiden" - } - } - } - */ - -// type UserClasses = Partial>; - -// type PlaytypeClasses = Partial>; - -// this one is just flat out wrong btw, there are very strict requirements -// on what strings can go in here. -// type ClassInfo = Partial>; - /** * PrivateUserDocument is the document indicating that we've returned everything about the user * from the DB - including their private information.