diff --git a/types/react-dom/test-utils/index.d.ts b/types/react-dom/test-utils/index.d.ts index fb98181847..8730dc9447 100644 --- a/types/react-dom/test-utils/index.d.ts +++ b/types/react-dom/test-utils/index.d.ts @@ -297,7 +297,7 @@ export function act(callback: () => void | undefined): DebugPromiseLike | {}; // Intentionally doesn't extend PromiseLike. // Ideally this should be as hard to accidentally use as possible. -interface DebugPromiseLike { +export interface DebugPromiseLike { // the actual then() in here is 0-ary, but that doesn't count as a PromiseLike. then(onfulfilled: (value: never) => never, onrejected: (reason: never) => never): never; } diff --git a/types/react-test-renderer/index.d.ts b/types/react-test-renderer/index.d.ts index 34ddb2502c..abdae1c908 100644 --- a/types/react-test-renderer/index.d.ts +++ b/types/react-test-renderer/index.d.ts @@ -70,7 +70,7 @@ export function act(callback: () => void | undefined): DebugPromiseLike | {}; // Intentionally doesn't extend PromiseLike. // Ideally this should be as hard to accidentally use as possible. -interface DebugPromiseLike { +export interface DebugPromiseLike { // the actual then() in here is 0-ary, but that doesn't count as a PromiseLike. then(onfulfilled: (value: never) => never, onrejected: (reason: never) => never): never; }