From 7f255afce6dd45d3101efdce48461324e4f00ad0 Mon Sep 17 00:00:00 2001 From: Hikari Date: Fri, 20 Feb 2026 00:05:39 -0800 Subject: [PATCH] fix: export ActivityType as value not just type Changed the activity.types export from 'export type *' to 'export *' so that the ActivityType enum can be used as both a type and a value. This is necessary because: - Backend needs ActivityType.suggestion, ActivityType.like, etc. as values - Frontend needs ActivityType enum for switch statements - TypeScript enums need to be exported as values to be used at runtime --- shared-types/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared-types/src/index.ts b/shared-types/src/index.ts index dd76c94..08527ce 100644 --- a/shared-types/src/index.ts +++ b/shared-types/src/index.ts @@ -5,7 +5,7 @@ */ export * from "./lib/achievement.constants"; export * from "./lib/achievement.types"; -export type * from "./lib/activity.types"; +export * from "./lib/activity.types"; export type * from "./lib/art.types"; export * from "./lib/audit.types"; export * from "./lib/auth.types";