Merge pull request #15910 from lochbrunner/master

Add unmount method declaration to the react-test-renderer package
This commit is contained in:
Ryan Cavanaugh
2017-04-18 01:25:12 -07:00
committed by GitHub
+2 -1
View File
@@ -1,6 +1,6 @@
// Type definitions for react-test-renderer 15.4
// Project: https://facebook.github.io/react/
// Definitions by: Arvitaly <https://github.com/arvitaly>
// Definitions by: Arvitaly <https://github.com/arvitaly>, Lochbrunner <https://github.com/lochbrunner>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.1
@@ -8,6 +8,7 @@ import { ReactElement } from "react";
export interface Renderer {
toJSON(): ReactTestRendererJSON;
unmount(nextElement?: ReactElement<any>): void;
}
export interface ReactTestRendererJSON {
type: string;