Skip to content

Commit 16591cf

Browse files
committed
fix(example-context): improve type definitions to avoid TypeScript errors
Signed-off-by: Miroslav Bajtoš <mbajtoss@gmail.com>
1 parent 26f100a commit 16591cf

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

examples/context/src/__tests__/acceptance/examples.acceptance.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,14 @@ describe('context examples', () => {
5050

5151
function disableConsoleOutput() {
5252
originalConsoleLog = console.log;
53-
console.log = (...args) => {
54-
logs.push(format(...args));
53+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
54+
console.log = (fmt: any, ...params: any[]) => {
55+
logs.push(format(fmt, ...params));
5556
};
5657
originalConsoleError = console.error;
57-
console.error = (...args) => {
58-
errors.push(format(...args));
58+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
59+
console.error = (fmt: any, ...params: any[]) => {
60+
errors.push(format(fmt, ...params));
5961
};
6062
}
6163

0 commit comments

Comments
 (0)