4.0.3 • Published 6 months ago

@types/commercetools__enzyme-extensions v4.0.3

Weekly downloads
90
License
MIT
Repository
github
Last release
6 months ago

Installation

npm install --save @types/commercetools__enzyme-extensions

Summary

This package contains type definitions for @commercetools/enzyme-extensions (https://github.com/commercetools/enzyme-extensions).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/commercetools__enzyme-extensions.

index.d.ts

// Type definitions for @commercetools/enzyme-extensions 4.0
// Project: https://github.com/commercetools/enzyme-extensions
// Definitions by: Christian Rackerseder <https://github.com/screendriver>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 3.1

import * as enzyme from 'enzyme';

declare module 'enzyme' {
    interface UntilOptions {
        maxDepth: number;
    }
    interface ShallowWrapper<P = {}> {
        drill(expander: (props: any) => ShallowWrapper): ShallowWrapper<P>;
        until(selector: EnzymeSelector, options?: UntilOptions): ShallowWrapper<P>;
    }
}

declare function monkeyPatchShallowWrapper(s: typeof enzyme.ShallowWrapper): void;

export = monkeyPatchShallowWrapper;

Additional Details

  • Last updated: Mon, 19 Jul 2021 16:31:26 GMT
  • Dependencies: @types/enzyme
  • Global values: none

Credits

These definitions were written by Christian Rackerseder.

4.0.1

8 months ago

4.0.3

6 months ago

4.0.2

7 months ago

4.0.0

3 years ago

3.0.2

4 years ago

3.0.1

5 years ago

3.0.0

5 years ago