// Type definitions for react-test-renderer 15.4 // Project: https://facebook.github.io/react/ // Definitions by: Arvitaly // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped import { ReactElement } from "react"; interface Renderer { toJSON(): ReactTestRendererJSON; } interface ReactTestRendererJSON { type: string; props: { [propName: string]: string }; children: null | Array; $$typeof?: any; } interface TestRendererOptions { createNodeMock: (element: ReactElement) => any; } // https://github.com/facebook/react/blob/master/src/renderers/testing/ReactTestMount.js#L155 export function create(nextElement: ReactElement, options?: TestRendererOptions): Renderer;