enumOption | WebHare Platform SDK
WebHare Platform SDK
    Preparing search index...

    Function enumOption

    • Accept a string from a specific set

      Type Parameters

      • const T extends string

      Parameters

      • allowedValues: readonly T[]

        The allowed values

      Returns CLIArgumentType<T>

      arguments: [{ name: "[state]", description: "on/off", type: enumOption(["on", "off"]) }],