-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1834 from reduxjs/pr/fix-module-types-4.5
- Loading branch information
Showing
5 changed files
with
49 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
diff --git a/index.d.ts b/index.d.ts | ||
index 1dbf70a6fdf4369188ad44166aee188c8efd2054..56b85e26b2b3030bc3407aab2b358fd4e5e39c6a 100644 | ||
--- a/index.d.ts | ||
+++ b/index.d.ts | ||
@@ -1,4 +1,4 @@ | ||
-export const originalConsole = Console; | ||
+export declare const originalConsole: Console; | ||
|
||
type Options = { | ||
isSilent?: boolean; | ||
@@ -24,14 +24,13 @@ export type TestingConsoleInstance = { | ||
}; | ||
getRecord: (method: string) => string; | ||
silence: boolean; | ||
- private _targetConsole: TestingConsole | Console; | ||
}; | ||
|
||
export function createConsole(options?: Options): TestingConsole; | ||
|
||
export function mockConsole( | ||
testingConsole: TestingConsole, | ||
- targetConsoleParent?: {} = global, | ||
+ targetConsoleParent?: typeof globalThis, | ||
targetConsoleKey?: string | ||
): () => void; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters