-
-
Notifications
You must be signed in to change notification settings - Fork 175
Expand file tree
/
Copy pathshim.d.ts
More file actions
40 lines (32 loc) · 855 Bytes
/
shim.d.ts
File metadata and controls
40 lines (32 loc) · 855 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
declare module 'eslint-plugin-node-dependencies' {
import { ESLint } from 'eslint';
const nodeDependencies: ESLint.Plugin & {
configs: {
'flat/recommended': ESLint.Linter.Config[];
};
};
export = nodeDependencies;
}
declare module 'loglevel-colored-level-prefix' {
namespace getLogger {
type LogLevel = 'debug' | 'error' | 'info' | 'silent' | 'trace' | 'warn';
interface Logger
extends Record<
LogLevel,
jest.Mock<void, [message: string, ...args: unknown[]]>
> {
setLevel(level: LogLevel): void;
}
interface GetLogger {
(options: { prefix: string }): Logger;
// testing mock
mock: {
logThings: LogLevel[] | 'all';
logger: Logger;
clearAll(): void;
};
}
}
const getLogger: getLogger.GetLogger;
export = getLogger;
}