UNPKG

danger

Version:
11 lines (10 loc) 515 B
import { GitHubDSL, GitHubJSONDSL } from "../dsl/GitHubDSL"; import { GitHubAPI } from "./github/GitHubAPI"; import { Octokit as NodeGitHub } from "@octokit/rest"; import { Platform } from "./platform"; /** Handles conforming to the Platform Interface for GitHub, API work is handle by GitHubAPI */ export type GitHubType = Platform & { api: GitHubAPI; }; export declare function GitHub(api: GitHubAPI): GitHubType; export declare const githubJSONToGitHubDSL: (gh: GitHubJSONDSL, api: NodeGitHub) => GitHubDSL;