From 987f88cc20bd60a60a23640ab76f52fe1f7fca08 Mon Sep 17 00:00:00 2001 From: Jessica Date: Wed, 6 Feb 2019 19:53:52 +0900 Subject: [PATCH] Add missing export annotations --- types/react-dom/test-utils/index.d.ts | 2 +- types/react-test-renderer/index.d.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; }