@antadesign/anta
    Preparing search index...

    Type Alias SelectFacetedChangeAttrsUnreviewed

    SelectFacetedChangeAttrs:
        | { facet: string; kind: SelectFacet["kind"]; value: unknown }
        | { all: true }

    Second argument to onValueChange — what changed. A single-facet edit carries facet / kind / the facet's new value; the "Clear all" row carries all: true. Narrow on 'all' in attrs.

    Type Declaration

    • { facet: string; kind: SelectFacet["kind"]; value: unknown }
      • Unreviewedfacet: string

        The facet key that changed.

      • Unreviewedkind: SelectFacet["kind"]

        That facet's kind.

      • Unreviewedvalue: unknown

        The facet's new value (undefined when the facet was cleared).

    • { all: true }
      • Unreviewedall: true

        Marks the change as the "Clear all" row emptying every facet.