diff --git a/common/js/types.d.ts b/common/js/types.d.ts index 187060ac7..b54e374ae 100644 --- a/common/js/types.d.ts +++ b/common/js/types.d.ts @@ -703,12 +703,11 @@ export interface FolderDocument extends MongoDBDocument { title: string; game: Game; custom: boolean; - byUser: integer; - views: integer; - type: "query"; + byUser: integer | null; + type: "query" | "static"; query: { - collection: string; - query: Record; + collection: "songs" | "charts"; + body: Record; }; folderID: string; table: string; diff --git a/common/src/types.ts b/common/src/types.ts index 2fd64cc9a..9bded4e98 100644 --- a/common/src/types.ts +++ b/common/src/types.ts @@ -882,12 +882,11 @@ export interface FolderDocument extends MongoDBDocument { title: string; game: Game; custom: boolean; - byUser: integer; - views: integer; - type: "query"; + byUser: integer | null; + type: "query" | "static"; query: { - collection: string; - query: Record; + collection: "songs" | "charts"; + body: Record; }; folderID: string; table: string;