mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
26 lines
771 B
TypeScript
26 lines
771 B
TypeScript
// Type definitions for enzyme-redux 0.2
|
|
// Project: https://github.com/Knegusen/enzyme-redux#readme
|
|
// Definitions by: Dennis Axelsson <https://github.com/knegusen>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
// TypeScript Version: 3.1
|
|
|
|
import { ReactWrapper, ShallowWrapper } from 'enzyme';
|
|
import { ReactElement } from 'react';
|
|
|
|
export function shallowWithStore<P>(
|
|
Component: ReactElement<P>,
|
|
store: any
|
|
): ShallowWrapper<P>;
|
|
export function mountWithStore<P>(
|
|
Component: ReactElement<P>,
|
|
store: any
|
|
): ReactWrapper<P>;
|
|
export function shallowWithState<P>(
|
|
Component: ReactElement<P>,
|
|
state: any
|
|
): ShallowWrapper<P>;
|
|
export function mountWithState<P>(
|
|
Component: ReactElement<P>,
|
|
state: any
|
|
): ReactWrapper<P>;
|