mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 22:30:01 +00:00
Add missing export annotations
This commit is contained in:
2
types/react-dom/test-utils/index.d.ts
vendored
2
types/react-dom/test-utils/index.d.ts
vendored
@@ -297,7 +297,7 @@ export function act(callback: () => void | undefined): DebugPromiseLike | {};
|
||||
|
||||
// Intentionally doesn't extend PromiseLike<never>.
|
||||
// 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;
|
||||
}
|
||||
|
||||
2
types/react-test-renderer/index.d.ts
vendored
2
types/react-test-renderer/index.d.ts
vendored
@@ -70,7 +70,7 @@ export function act(callback: () => void | undefined): DebugPromiseLike | {};
|
||||
|
||||
// Intentionally doesn't extend PromiseLike<never>.
|
||||
// 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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user