-
Notifications
You must be signed in to change notification settings - Fork 2.1k
/
globals.d.ts
45 lines (35 loc) · 908 Bytes
/
globals.d.ts
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
41
42
43
44
45
/*
* This file should be removed in future.
*/
declare namespace Renovate {
interface Cache {
get<T = any>(namespace: string, key: string): Promise<T>;
rm(namespace: string, key: string): Promise<void>;
set<T = any>(
namespace: string,
key: string,
value: T,
ttlMinutes?: number
): Promise<void>;
}
}
declare interface Error {
configFile?: string;
statusCode?: number;
validationError?: string;
validationMessage?: string;
}
declare namespace NodeJS {
interface Global {
appMode?: boolean;
gitAuthor?: { name: string; email: string };
renovateCache: Renovate.Cache;
trustLevel?: string;
}
}
declare let renovateCache: Renovate.Cache;
// can't use `resolveJsonModule` because it will copy json files and change dist path
declare module '*.json' {
const value: { version: string } & Record<string, any>;
export = value;
}