diff --git a/types/testing-library__react/index.d.ts b/types/testing-library__react/index.d.ts index fcea540f97..9d438a0588 100644 --- a/types/testing-library__react/index.d.ts +++ b/types/testing-library__react/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for @testing-library/react 9.1 +// Type definitions for @testing-library/react 10.0 // Project: https://github.com/testing-library/react-testing-library // Definitions by: Alex Krolick // Kent C Dodds @@ -6,6 +6,7 @@ // Weyert de Boer // Ifiok Jr. // Daniel Afonso +// Tim Swalling // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 3.0 @@ -47,7 +48,7 @@ export function render(ui: React.ReactElement, options: Rende /** * Unmounts React trees that were mounted with render. */ -export function cleanup(): void; +export function cleanup(): Promise; /** * Simply calls ReactDOMTestUtils.act(cb)