UNPKG

@jbrunton/gha-installer

Version:
14 lines (13 loc) 488 B
import { AppInfo } from './app_info'; import { ActionsCore } from './interfaces'; export interface DownloadInfo<T> { version: string; url: string; meta: T; } export declare type OnFileDownloaded<T> = (path: string, info: DownloadInfo<T>, core: ActionsCore) => void; export declare type GetDownloadInfo<T> = (app: AppInfo) => Promise<DownloadInfo<T>>; export interface DownloadService<T> { getDownloadInfo: GetDownloadInfo<T>; onFileDownloaded?: OnFileDownloaded<T>; }