enumOption | WebHare Platform SDKWebHare Platform SDKPreparing search index...@webhare/clienumOptionFunction enumOptionenumOption<const T extends string>( allowedValues: readonly T[],): CLIArgumentType<T>Accept a string from a specific set Type Parametersconst T extends stringParametersallowedValues: readonly T[]The allowed values Returns CLIArgumentType<T>Examplearguments: [{ name: "[state]", description: "on/off", type: enumOption(["on", "off"]) }], Copy SettingsMember VisibilityProtectedInheritedThemeOSLightDarkWebHare Platform SDKLoading...
Accept a string from a specific set