Interface DynDerivedAPI<D, K, T>
interface DynDerivedAPI<D, K, T> {
clear(): void;
create(options: DynOptionsDerivedCreate<T>): DynDerivedReducer<D, K, T>;
delete(name: string): boolean;
destroy(): void;
get(name: string): DynDerivedReducer<D, K, T>;
}
clear(): void;
create(options: DynOptionsDerivedCreate<T>): DynDerivedReducer<D, K, T>;
delete(name: string): boolean;
destroy(): void;
get(name: string): DynDerivedReducer<D, K, T>;
}
Type Parameters
Methods
clear
create
- create(options): DynDerivedReducer<D, K, T>
Parameters
- options: DynOptionsDerivedCreate<T>
Options for creating a reducer.
Returns DynDerivedReducer<D, K, T>
Newly created derived reducer.
- options: DynOptionsDerivedCreate<T>
delete
destroy
get
- get(name): DynDerivedReducer<D, K, T>
Returns an existing derived reducer.
Parameters
- name: string
Name of derived reducer.
Returns DynDerivedReducer<D, K, T>
Any associated derived reducer.
- name: string
Provides the public API for derived reducers. There are several ways to create a derived reducer from utilizing the default implementation or passing in a constructor function / class for a custom derived reducer.
This class forms the public API which is accessible from the
.derived
getter in the main reducer implementation.Template: D,
K, T