From 5b711cdc2e137dc7f5e85b6bc475a46fe9454c0e Mon Sep 17 00:00:00 2001 From: Jacob Shandling <61553566+jacobshandling@users.noreply.github.com> Date: Tue, 8 Aug 2023 10:40:07 -0700 Subject: [PATCH] =?UTF-8?q?Frontend=20=E2=80=93=20correctly=20represent=20?= =?UTF-8?q?all=20platform=20string=20possibilities=20(#13193)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/interfaces/platform.ts | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/frontend/interfaces/platform.ts b/frontend/interfaces/platform.ts index 434f07a61f..308e4db8c8 100644 --- a/frontend/interfaces/platform.ts +++ b/frontend/interfaces/platform.ts @@ -20,21 +20,10 @@ export type SelectedPlatform = SupportedPlatform | "all"; export type SelectedPlatformString = | "" - | "darwin" - | "windows" - | "linux" - | "chrome" - | "darwin,windows,linux,chrome" - | "darwin,windows,linux" - | "darwin,linux,chrome" - | "darwin,windows,chrome" - | "windows,linux,chrome" - | "darwin,windows" - | "darwin,linux" - | "darwin,chrome" - | "windows,linux" - | "windows,chrome" - | "linux,chrome"; + | SupportedPlatform + | `${SupportedPlatform},${SupportedPlatform}` + | `${SupportedPlatform},${SupportedPlatform},${SupportedPlatform}` + | `${SupportedPlatform},${SupportedPlatform},${SupportedPlatform},${SupportedPlatform}`; // TODO: revisit this approach pending resolution of https://github.com/fleetdm/fleet/issues/3555. export const MACADMINS_EXTENSION_TABLES: Record = {