fieldnotesai
    Preparing search index...

    Interface FilterConfig<T>

    Generic filter definition.

    A FilterConfig<T> declares one filterable dimension for a list of items:

    • key - unique identifier (used as React key and for state updates)
    • label - human-readable name shown in the UI
    • predicate - pure function that returns true when item passes filter

    Designed to be generic so the same hook drives both client and case filters without modification .

    interface FilterConfig<T> {
        key: string;
        label: string;
        predicate: (item: T, value: string) => boolean;
    }

    Type Parameters

    • T
    Index

    Properties

    Properties

    key: string
    label: string
    predicate: (item: T, value: string) => boolean

    Returns true if item satisfies the filter given the current value.