ConfigField:
    | {
        default: boolean;
        description?: string;
        key: string;
        kind: "boolean";
        label: string;
    }
    | {
        default: number;
        description?: string;
        key: string;
        kind: "number";
        label: string;
        max?: number;
        min?: number;
        step?: number;
        unit?: string;
    }
    | {
        default: string;
        description?: string;
        key: string;
        kind: "select";
        label: string;
        options: { label: string; value: string }[];
    }

One tunable knob in an Inspection's ConfigSchema.

Type declaration

  • {
        default: boolean;
        description?: string;
        key: string;
        kind: "boolean";
        label: string;
    }
    • default: boolean
    • Optionaldescription?: string

      Plain-English explanation for tooltips / help panes.

    • key: string

      Key under which the value is read from overrides and written into the resolved config (e.g. "checkGeometryArrayLengths").

    • kind: "boolean"
    • label: string

      Short human-readable name for UI controls.

  • {
        default: number;
        description?: string;
        key: string;
        kind: "number";
        label: string;
        max?: number;
        min?: number;
        step?: number;
        unit?: string;
    }
    • default: number
    • Optionaldescription?: string
    • key: string
    • kind: "number"
    • label: string
    • Optionalmax?: number

      Inclusive upper bound. Values above are clamped on resolve.

    • Optionalmin?: number

      Inclusive lower bound. Values below are clamped on resolve.

    • Optionalstep?: number

      UI hint — slider / number-input step. Does not affect resolved values.

    • Optionalunit?: string

      UI hint — appended after the value (e.g. "vertices", "m"). Does not affect resolved values.

  • {
        default: string;
        description?: string;
        key: string;
        kind: "select";
        label: string;
        options: { label: string; value: string }[];
    }