Defines object / options for creating a top-level DynArrayReducer. Useful for consumers of the dynamic-reducer library to implement a create method similar to derived reducers.

interface ListCreate<T> {
    ctor?: typeof DynArrayReducer;
    filters?: Iterable<DynReducer.Data.FilterFn<T> | Filter<T>>;
    name?: string;
    sort?: CompareFn<T> | DynReducer.Data.Sort<T>;
    [key: string]: any;
}

Type Parameters

  • T

    any - Type of data.

Hierarchy

Indexable

  • [key: string]: any

    Extra data to pass through to any initialize method.

Properties

ctor?: typeof DynArrayReducer

A list constructor function / class.

Iterable list of filters.

name?: string

Name of reducer.

Compare function.