# Interface TypedUseSelectorHook<TState>

This interface allows you to easily create a hook that is properly typed for your store's root state.

#### Example

    interface RootState {
      property: string;
    }

    const useTypedSelector: TypedUseSelectorHook<RootState> = useSelector;

interface TypedUseSelectorHook<TState> {
<TSelected>(selector, equalityFn?): TSelected;
<Selected>(selector, options?): Selected;
}

#### Type Parameters

- TState

- TypedUseSelectorHook<TSelected>(selector, equalityFn?): TSelected

- #### Type Parameters

  - TSelected

  #### Parameters

  - selector: ((state) => TSelected)
    - - (state): TSelected

      - #### Parameters

        - state: TState

        #### Returns TSelected

  - `Optional` equalityFn: EqualityFn<NoInfer<TSelected>>

  #### Returns TSelected

  - Defined in common/temp/node_modules/.pnpm/react-redux@8.1.3_91ee3f21853aee6f4038f22086c31182/node_modules/react-redux/es/types.d.ts:76
- TypedUseSelectorHook<Selected>(selector, options?): Selected

- #### Type Parameters

  - Selected = unknown

  #### Parameters

  - selector: ((state) => Selected)
    - - (state): Selected

      - #### Parameters

        - state: TState

        #### Returns Selected

  - `Optional` options: UseSelectorOptions<Selected>

  #### Returns Selected

  - Defined in common/temp/node_modules/.pnpm/react-redux@8.1.3_91ee3f21853aee6f4038f22086c31182/node_modules/react-redux/es/types.d.ts:77