Skip to content

Commit

Permalink
chore: refactor isAppMode
Browse files Browse the repository at this point in the history
  • Loading branch information
emcelroy committed Dec 10, 2024
1 parent fb72646 commit c57379d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export const AppModeValues = ["development", "production", "test"] as const;
export type AppMode = typeof AppModeValues[number];
export const isAppMode = (value: unknown): value is AppMode => {
return value === "development" || value === "production" || value === "test";
return AppModeValues.includes(value as AppMode);
};

export type AppConfig = {
Expand Down

0 comments on commit c57379d

Please sign in to comment.