drupflare/worker - v1.0.4
    Preparing search index...

    Type Alias LeverDomain

    LeverDomain:
        | {
            default?: number;
            kind: "int";
            marks?: readonly LeverMark[];
            max: number;
            min: number;
            unit?: "ms"
            | "bytes";
        }
        | { kind: "flag" }
        | { kind: "enum"; values: readonly string[] }
        | { kind: "bins" }
        | { kind: "rules" }

    What a lever accepts, read off the function that parses it: int bounds are the reader's own clamps, unit is for display, flag is 0 or 1.

    Type Declaration

    • {
          default?: number;
          kind: "int";
          marks?: readonly LeverMark[];
          max: number;
          min: number;
          unit?: "ms" | "bytes";
      }
      • Optionaldefault?: number

        the value in force when nothing overrides the lever

      • kind: "int"
      • Optionalmarks?: readonly LeverMark[]

        ascending by value, every value inside [min, max]

      • max: number
      • min: number
      • Optionalunit?: "ms" | "bytes"
    • { kind: "flag" }
    • { kind: "enum"; values: readonly string[] }
    • { kind: "bins" }
    • { kind: "rules" }