renovate/lib/globals.d.ts
2020-06-24 22:33:27 +02:00

27 lines
528 B
TypeScript

/*
* This file should be removed in future.
*/
declare interface Error {
configFile?: string;
statusCode?: number;
validationError?: string;
validationMessage?: string;
}
declare namespace NodeJS {
interface Global {
appMode?: boolean;
gitAuthor?: { name: string; email: string };
trustLevel?: string;
}
}
// 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;
}