renovate
Version:
Automated dependency updates. Flexible so you don't need to be.
29 lines (28 loc) • 919 B
TypeScript
import type { RenovateConfig } from '../types';
export type Preset = RenovateConfig & Record<string, unknown>;
export interface PresetConfig {
repo: string;
presetPath?: string | undefined;
presetName?: string;
tag?: string | undefined;
}
export interface PresetApi {
getPreset(config: PresetConfig): Promise<Preset | null | undefined> | Preset | null | undefined;
}
export interface ParsedPreset {
presetSource: string;
repo: string;
presetPath?: string | undefined;
presetName: string;
tag?: string | undefined;
params?: string[] | undefined;
}
export type PresetFetcher = (repo: string, fileName: string, endpoint: string, tag?: string) => Promise<Preset | null | undefined>;
export interface FetchPresetConfig {
repo: string;
filePreset: string;
presetPath?: string | undefined;
endpoint: string;
tag?: string | undefined;
fetch: PresetFetcher;
}