2017-12-14 11:29:54 +00:00
|
|
|
declare module 'pkg' {
|
|
|
|
export function exec(args: string[]): Promise<void>;
|
|
|
|
}
|
|
|
|
|
|
|
|
declare module 'filehound' {
|
|
|
|
export function create(): FileHound;
|
|
|
|
|
|
|
|
export interface FileHound {
|
|
|
|
paths(paths: string[]): FileHound;
|
|
|
|
paths(...paths: string[]): FileHound;
|
|
|
|
ext(extensions: string[]): FileHound;
|
|
|
|
ext(...extensions: string[]): FileHound;
|
|
|
|
find(): Promise<string[]>;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
declare module 'publish-release' {
|
|
|
|
interface PublishOptions {
|
2018-01-04 14:07:55 +00:00
|
|
|
token: string;
|
|
|
|
owner: string;
|
|
|
|
repo: string;
|
|
|
|
tag: string;
|
|
|
|
name: string;
|
|
|
|
reuseRelease?: boolean;
|
|
|
|
assets: string[];
|
2017-12-14 11:29:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
interface Release {
|
|
|
|
html_url: string;
|
|
|
|
}
|
|
|
|
|
2018-01-09 15:05:24 +00:00
|
|
|
let publishRelease: (
|
|
|
|
args: PublishOptions,
|
|
|
|
callback: (e: Error, release: Release) => void,
|
|
|
|
) => void;
|
2017-12-14 11:29:54 +00:00
|
|
|
|
|
|
|
export = publishRelease;
|
|
|
|
}
|