Interface representing the parameters for a specific operation.

interface IParams<T extends IEntity = any> {
    debounce?: number;
    initialValue?: T[] | () => T[] | Entity<T>[] | Collection<T>;
    onChange?: (
        item: CollectionAdapter<T>,
        target: null | CollectionEntityAdapter<T>,
    ) => void;
}

Type Parameters

  • T extends IEntity = any

    Type of the entity.

Properties

debounce?: number
initialValue?: T[] | () => T[] | Entity<T>[] | Collection<T>
onChange?: (
    item: CollectionAdapter<T>,
    target: null | CollectionEntityAdapter<T>,
) => void