npm.io
1.0.3 • Published 2 years ago

@types/react-combine-reducers

Licence
MIT
Version
1.0.3
Deps
1
Size
3 kB
Vulns
0
Weekly
0
Stars
51.4K

Installation

npm install --save @types/react-combine-reducers

Summary

This package contains type definitions for react-combine-reducers (https://github.com/ankita1010/react-combine-reducers#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-combine-reducers.

index.d.ts

import { Reducer, ReducerState } from "react";

declare function combineReducers<R extends Reducer<any, any>>(
    reducers: {
        [K in keyof ReducerState<R>]: [Reducer<ReducerState<R>[K], any>, ReducerState<R>[K]];
    },
): [R, ReducerState<R>];
export = combineReducers;

Additional Details

  • Last updated: Tue, 07 Nov 2023 0939 GMT
  • Dependencies: @types/react

Credits

These definitions were written by Raphaël Léger.