mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-12 15:06:27 +00:00
33 lines
701 B
TypeScript
33 lines
701 B
TypeScript
declare namespace Renovate {
|
|
// TODO: refactor logger
|
|
interface ILogger {
|
|
trace(...args: any[]): void;
|
|
debug(...args: any[]): void;
|
|
info(...args: any[]): void;
|
|
warn(...args: any[]): void;
|
|
error(...args: any[]): void;
|
|
fatal(...args: any[]): void;
|
|
child(...args: any[]): void;
|
|
|
|
setMeta(obj: any): void;
|
|
}
|
|
|
|
interface IDict<T> {
|
|
[key: string]: T;
|
|
}
|
|
}
|
|
|
|
// eslint-disable-next-line no-var, vars-on-top
|
|
declare var logger: Renovate.ILogger;
|
|
|
|
declare interface Error {
|
|
validationError?: string;
|
|
validationMessage?: string;
|
|
}
|
|
|
|
declare namespace NodeJS {
|
|
interface Global {
|
|
gitAuthor?: { name: string; email: string };
|
|
logger: Renovate.ILogger;
|
|
}
|
|
}
|