Frontend – correctly represent all platform string possibilities (#13193)

This commit is contained in:
Jacob Shandling 2023-08-08 10:40:07 -07:00 committed by GitHub
parent a7f1501054
commit 5b711cdc2e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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<string, OsqueryPlatform[]> = {