Type alias FunctionSelector<RootState, State>

FunctionSelector<RootState, State>: ((state: RootState) => State)

Type Parameters

  • RootState

    The type of the root state object.

  • State

Type declaration

    • (state: RootState): State
    • A function that selects a subset of a RootState object and returns it as an S object.

      Example

       @Select(store => store.name || 'new name') readonly name$: Observable<string>;
      

      Returns

      The selected subset of the root state object.

      Parameters

      • state: RootState

        The root state object to select from.

      Returns State

Generated using TypeDoc