2021-12-01 20:24:01 +00:00
|
|
|
|
import type { HttpClient } from 'isomorphic-git/http/node';
|
2021-11-30 20:53:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export interface BasicAuth {
|
|
|
|
|
username: string
|
|
|
|
|
password: string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// TODO: Restructure HTTPRequest to reuse Isomorphic Git’s GitHttpRequest?
|
|
|
|
|
|
|
|
|
|
export interface HTTPRequest {
|
|
|
|
|
http: HttpClient;
|
|
|
|
|
headers?: Record<string, any>;
|
|
|
|
|
|
|
|
|
|
/** Repository URL. */
|
|
|
|
|
url: string;
|
|
|
|
|
|
|
|
|
|
/** Auth data for basic HTTP auth. */
|
|
|
|
|
auth?: BasicAuth
|
|
|
|
|
}
|