staticql
Version:
Type-safe query engine for static content including Markdown, YAML, JSON, and more.
14 lines (13 loc) • 460 B
TypeScript
import type { DiffProvider, DiffLine } from "./index.js";
export interface GitHubDiffProviderOptions {
repo: string;
token?: string;
}
export declare class GitHubDiffProvider implements DiffProvider {
private repo;
private token?;
constructor(options: GitHubDiffProviderOptions);
private get headers();
diffLines(baseRef: string, headRef: string): Promise<DiffLine[]>;
gitShow(rev: string, filePath: string): Promise<string>;
}