isogit-lfs/src/types.ts

20 lines
389 B
TypeScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import type { HttpClient } from "isomorphic-git";
export interface BasicAuth {
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. */
auth?: BasicAuth;
}