generated from nhcarrigan/template
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
This commit is contained in:
@@ -5,7 +5,7 @@
|
|||||||
*/
|
*/
|
||||||
export * from "./lib/achievement.constants";
|
export * from "./lib/achievement.constants";
|
||||||
export * from "./lib/achievement.types";
|
export * from "./lib/achievement.types";
|
||||||
export type * from "./lib/activity.types";
|
export * from "./lib/activity.types";
|
||||||
export type * from "./lib/art.types";
|
export type * from "./lib/art.types";
|
||||||
export * from "./lib/audit.types";
|
export * from "./lib/audit.types";
|
||||||
export * from "./lib/auth.types";
|
export * from "./lib/auth.types";
|
||||||
|
|||||||
Reference in New Issue
Block a user