File tree Expand file tree Collapse file tree 5 files changed +49
-4
lines changed Expand file tree Collapse file tree 5 files changed +49
-4
lines changed Original file line number Diff line number Diff line change
1
+ diff --git a/index.d.ts b/index.d.ts
2
+ index 1dbf70a6fdf4369188ad44166aee188c8efd2054..56b85e26b2b3030bc3407aab2b358fd4e5e39c6a 100644
3
+ --- a/index.d.ts
4
+ +++ b/index.d.ts
5
+ @@ -1,4 +1,4 @@
6
+ - export const originalConsole = Console;
7
+ + export declare const originalConsole: Console;
8
+
9
+ type Options = {
10
+ isSilent?: boolean;
11
+ @@ -24,14 +24,13 @@ export type TestingConsoleInstance = {
12
+ };
13
+ getRecord: (method: string) => string;
14
+ silence: boolean;
15
+ - private _targetConsole: TestingConsole | Console;
16
+ };
17
+
18
+ export function createConsole(options?: Options): TestingConsole;
19
+
20
+ export function mockConsole(
21
+ testingConsole: TestingConsole,
22
+ - targetConsoleParent?: {} = global,
23
+ + targetConsoleParent?: typeof globalThis,
24
+ targetConsoleKey?: string
25
+ ): () => void;
26
+
Original file line number Diff line number Diff line change 36
36
},
37
37
"resolutions" : {
38
38
"react-scripts" : " patch:react-scripts@npm:4.0.2#.yarn/patches/react-scripts__npm_4.0.2.patch" ,
39
+ "console-testing-library" : " patch:console-testing-library@npm:0.3.1#.yarn/patches/console-testing-library__npm_0.3.1.patch" ,
39
40
"react-redux" : " npm:7.2.4" ,
40
41
"react" : " npm:17.0.2" ,
41
42
"react-dom" : " npm:17.0.2"
Original file line number Diff line number Diff line change @@ -148,13 +148,21 @@ declare module '../apiTypes' {
148
148
getRunningOperationPromise < EndpointName extends QueryKeys < Definitions > > (
149
149
endpointName : EndpointName ,
150
150
args : QueryArgFrom < Definitions [ EndpointName ] >
151
- ) : QueryActionCreatorResult < Definitions [ EndpointName ] > | undefined
151
+ ) :
152
+ | QueryActionCreatorResult <
153
+ Definitions [ EndpointName ] & { type : 'query' }
154
+ >
155
+ | undefined
152
156
getRunningOperationPromise <
153
157
EndpointName extends MutationKeys < Definitions >
154
158
> (
155
159
endpointName : EndpointName ,
156
160
fixedCacheKeyOrRequestId : string
157
- ) : MutationActionCreatorResult < Definitions [ EndpointName ] > | undefined
161
+ ) :
162
+ | MutationActionCreatorResult <
163
+ Definitions [ EndpointName ] & { type : 'mutation' }
164
+ >
165
+ | undefined
158
166
159
167
/**
160
168
* A Redux thunk that can be used to manually trigger pre-fetching of data.
Original file line number Diff line number Diff line change 11
11
"target" : " es2018" ,
12
12
"jsx" : " react" ,
13
13
"baseUrl" : " ." ,
14
- "skipLibCheck" : true ,
14
+ "skipLibCheck" : false ,
15
15
"noImplicitReturns" : false
16
16
}
17
17
}
Original file line number Diff line number Diff line change @@ -9913,7 +9913,7 @@ __metadata:
9913
9913
languageName: node
9914
9914
linkType: hard
9915
9915
9916
- "console-testing-library@npm:^ 0.3.1":
9916
+ "console-testing-library@npm:0.3.1":
9917
9917
version: 0.3.1
9918
9918
resolution: "console-testing-library@npm:0.3.1"
9919
9919
dependencies:
@@ -9923,6 +9923,16 @@ __metadata:
9923
9923
languageName: node
9924
9924
linkType: hard
9925
9925
9926
+ "console-testing-library@patch:console-testing-library@npm:0.3.1#.yarn/patches/console-testing-library__npm_0.3.1.patch::locator=rtk-monorepo%40workspace%3A.":
9927
+ version: 0.3.1
9928
+ resolution: "console-testing-library@patch:console-testing-library@npm%3A0.3.1#.yarn/patches/console-testing-library__npm_0.3.1.patch::version=0.3.1&hash=790984&locator=rtk-monorepo%40workspace%3A."
9929
+ dependencies:
9930
+ jest-snapshot: ^24.9.0
9931
+ pretty-format: ^24.9.0
9932
+ checksum: 8cf742ea934f40d9c6a71f2c975fb42a93fc24ffaf9b78d98d9cfd420f705bb2e31738d07273d5ce1d099255a6314df3a247a9a8eb6e228d586f8743cdb2565e
9933
+ languageName: node
9934
+ linkType: hard
9935
+
9926
9936
"constant-case@npm:^3.0.4":
9927
9937
version: 3.0.4
9928
9938
resolution: "constant-case@npm:3.0.4"
You can’t perform that action at this time.
0 commit comments