mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* feat(react-redux): add strict null check * feat(react-redux): remove improper inference tests Infered decorated typings would rely on the implicit and false assumption that decorated component props extend injected props and own props #24922 #24913 * fix(react-redux): injected props and decorated component props intersection * InjectedProps should not have to extend DecoratedProps * DecoratedProps should not have to extend InjectedProps * DecoratedProps should extend Intersection<InjectedProps, DecoratedProps> * Remaining Props should be required on the decoration output #24913 #24922 * feat(react-redux): add new commiters * feat(react-redux): 2.9 keyof compatibility depends on Extract (2.8)
21 lines
692 B
TypeScript
21 lines
692 B
TypeScript
// Type definitions for redux-devtools 3.0.0
|
|
// Project: https://github.com/gaearon/redux-devtools
|
|
// Definitions by: Petryshyn Sergii <https://github.com/mc-petry>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
// TypeScript Version: 2.8
|
|
|
|
import * as React from 'react';
|
|
import { GenericStoreEnhancer } from 'redux';
|
|
|
|
export interface IDevTools {
|
|
new (): JSX.ElementClass;
|
|
instrument(): GenericStoreEnhancer
|
|
}
|
|
|
|
export declare function createDevTools(el: React.ReactElement<any>): IDevTools;
|
|
export declare function persistState(debugSessionKey: string): GenericStoreEnhancer;
|
|
|
|
declare const factory: { instrument(): (opts: any) => any };
|
|
|
|
export default factory;
|