isogit-lfs/src/types.ts

20 lines
389 B
TypeScript
Raw Permalink Normal View History

2022-12-07 23:49:43 +00:00
import type { HttpClient } from "isomorphic-git";
export interface BasicAuth {
2022-12-07 23:49:43 +00:00
username: string;
password: string;
}
// TODO: Restructure HTTPRequest to reuse Isomorphic Gits GitHttpRequest?
export interface HTTPRequest {
http: HttpClient;
headers?: Record<string, any>;
/** Repository URL. */
url: string;
/** Auth data for basic HTTP auth. */
2022-12-07 23:49:43 +00:00
auth?: BasicAuth;
}