mirror of
https://github.com/morluto/rea.git
synced 2026-11-28 15:18:49 +00:00
19 lines
404 B
TypeScript
19 lines
404 B
TypeScript
export interface GitHubApiBudget {
|
|
requests: number;
|
|
startedAt: number;
|
|
limitMs: number;
|
|
}
|
|
|
|
export type GitHubApiRequest = (
|
|
method: string,
|
|
endpoint: string,
|
|
budget: GitHubApiBudget,
|
|
) => Promise<unknown>;
|
|
|
|
export function validateRepository(repository: unknown): string;
|
|
|
|
export function createGhApiRequest(options?: {
|
|
env?: NodeJS.ProcessEnv;
|
|
now?: () => number;
|
|
}): GitHubApiRequest;
|