Type alias DynDataFilter<T>

    DynDataFilter<T>: {
        filter: DynFilterFn<T>;
        id?: any;
        subscribe?: ((indexUpdate) => (() => void));
        weight?: number;
    }

    Defines the data object to configure a filter w/ additional configuration options.

    Type Parameters

    • T

    Type declaration

    • filter: DynFilterFn<T>

      Filter function that takes a value argument and returns a truthy value to keep it.

    • Optional id?: any

      An optional ID associated with this filter. Can be used to remove the filter.

    • Optional subscribe?: ((indexUpdate) => (() => void))

      Optional subscribe function following the Svelte store / subscribe pattern.

        • (indexUpdate): (() => void)
        • Parameters

          Returns (() => void)

            • (): void
            • Returns void

    • Optional weight?: number

      An optional number between 0 and 1 inclusive to position this filter against others.