@types/enzyme-redux
TypeScript icon, indicating that this package has built-in type declarations

0.2.5 • Public • Published

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

Credits

These definitions were written by Dennis Axelsson.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/enzyme-redux

Weekly Downloads

38

Version

0.2.5

License

MIT

Unpacked Size

3.77 kB

Total Files

5

Last publish

Collaborators

  • types