fetch-github-release
Version:
Fetch binary from Github releases for your platform
15 lines (14 loc) • 446 B
TypeScript
import { RestEndpointMethodTypes } from '@octokit/rest';
export declare type OctokitRelease = RestEndpointMethodTypes['repos']['getLatestRelease']['response'];
export declare type OctokitReleaseAssets = OctokitRelease['data']['assets'];
export interface Release {
repository: string;
package: string;
destination: string;
version: string;
extract: boolean;
}
export interface RepoInfo {
owner: string;
repo: string;
}