mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-12 15:06:27 +00:00
51 lines
1.1 KiB
TypeScript
51 lines
1.1 KiB
TypeScript
declare namespace Renovate {
|
|
interface Cache {
|
|
get<T = any>(namespace: string, key: string): Promise<T>;
|
|
rm(namespace: string, key: string): Promise<void>;
|
|
rmAll(): 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 };
|
|
renovateVersion: string;
|
|
// TODO: declare interface for all platforms
|
|
platform: typeof import('./platform/github');
|
|
|
|
renovateCache: Renovate.Cache;
|
|
|
|
repoCache: Record<string, any>;
|
|
|
|
trustLevel?: string;
|
|
|
|
updateRubyGemsVersions?: Promise<void>;
|
|
}
|
|
}
|
|
|
|
declare let platform: typeof import('./platform/github');
|
|
|
|
declare let renovateCache: Renovate.Cache;
|
|
|
|
// can't use `resolveJsonModule` because it will copy json files and change dist path
|
|
declare module '*.json' {
|
|
const value: any;
|
|
export = value;
|
|
}
|