[NodeGit] Remote.create is async (#43310)

Reference: https://www.nodegit.org/api/remote/#create
This commit is contained in:
Alexis Rico 2020-03-23 16:27:49 +01:00 committed by GitHub
parent 1168acc915
commit 155dd3426e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,7 +26,7 @@ export namespace Remote {
export class Remote {
static addFetch(repo: Repository, remote: string, refspec: string): number;
static addPush(repo: Repository, remote: string, refspec: string): number;
static create(repo: Repository, name: string, url: string): Remote;
static create(repo: Repository, name: string, url: string): Promise<Remote>;
static createAnonymous(repo: Repository, url: string): Promise<Remote>;
static createDetached(url: string): Promise<Remote>;
static createWithFetchspec(repo: Repository, name: string, url: string, fetch: string): Promise<Remote>;