@codechecks/client
Version:
Open source platform for code review automation
13 lines (12 loc) • 487 B
TypeScript
import { Dictionary } from "ts-essentials";
declare type AsyncOrSync<T> = Promise<T> | T;
export declare type CiProvider = {
isCurrentlyRunning(): AsyncOrSync<boolean>;
getCurrentSha(): AsyncOrSync<string>;
isFork(): AsyncOrSync<boolean>;
getPullRequestID(): AsyncOrSync<number | undefined>;
getProjectSlug(): AsyncOrSync<string>;
supportsSpeculativeBranchSelection(): AsyncOrSync<boolean>;
};
export declare type Env = Dictionary<string | undefined>;
export {};