From a3bcffc49203440d32e9b014b260ad6559f62fec Mon Sep 17 00:00:00 2001 From: WhyAsh5114 Date: Tue, 26 Dec 2023 20:48:26 +0530 Subject: [PATCH] added a convenience type --- src/lib/types/arrays.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lib/types/arrays.ts b/src/lib/types/arrays.ts index e82cd8f3..fb4556c0 100644 --- a/src/lib/types/arrays.ts +++ b/src/lib/types/arrays.ts @@ -1,3 +1,5 @@ +import type { ObjectId } from "bson"; + export const muscleGroups: typeof MuscleGroups = [ "Chest", "Front delts", @@ -14,6 +16,8 @@ export const muscleGroups: typeof MuscleGroups = [ "Calves" ] as const; +export type WithUserId = T & { userId: ObjectId }; + export const caloricStates: typeof CaloricStates = [ { name: "Hypo-caloric",