From c57379dce4f9151cb5add032d5623904151269e3 Mon Sep 17 00:00:00 2001 From: Ethan McElroy Date: Mon, 9 Dec 2024 22:53:32 -0500 Subject: [PATCH] chore: refactor isAppMode --- src/types.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/types.ts b/src/types.ts index bc3de0a..560d15e 100644 --- a/src/types.ts +++ b/src/types.ts @@ -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 = {