Installation
npm install --save @types/enzyme-redux
Summary
This package contains type definitions for enzyme-redux (https://github.com/Knegusen/enzyme-redux#readme).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/enzyme-redux.
index.d.ts
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>;
Additional Details
- Last updated: Mon, 06 Nov 2023 22:41:05 GMT
- Dependencies: @types/enzyme, @types/react
Credits
These definitions were written by Dennis Axelsson.