isogit-lfs/src/types.ts

22 lines
398 B
TypeScript
Raw Normal View History

import type { HttpClient } from 'isomorphic-git/http/node';
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
}