DefinitelyTyped/types/enzyme-to-json/index.d.ts
2019-02-19 20:40:30 +01:00

10 lines
426 B
TypeScript

// Type definitions for enzyme-to-json 1.5
// Project: https://github.com/adriantoine/enzyme-to-json#readme
// Definitions by: Joscha Feth <https://github.com/joscha>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 3.1
import { ReactWrapper, ShallowWrapper } from 'enzyme';
export default function toJson<P, S>(wrapper: ShallowWrapper<P, S> | ReactWrapper<P, S> | Cheerio): object;