fix(nodegit): make parameters optional

This commit is contained in:
Valentin Vetter
2018-11-05 16:19:59 +01:00
committed by GitHub
parent e31b168ef1
commit f9348a653c
+2 -2
View File
@@ -78,7 +78,7 @@ export class Repository {
/**
* Creates a branch with the passed in name pointing to the commit
*/
createBranch(name: string, commit: Commit | string | Oid, force: boolean): Promise<Reference>;
createBranch(name: string, commit: Commit | string | Oid, force?: boolean): Promise<Reference>;
/**
* Look up a refs's commit.
*/
@@ -175,7 +175,7 @@ export class Repository {
* Fetches from all remotes. This is done in series due to deadlocking issues with fetching from many remotes that can happen.
*/
fetchAll(fetchOptions?: FetchOptions, callback?: Function): Promise<void>;
mergeBranches(to: string | Reference, from: string | Reference, signature: Signature, mergePreference: Merge.PREFERENCE, mergeOptions?: MergeOptions): Promise<Oid>;
mergeBranches(to: string | Reference, from: string | Reference, signature?: Signature, mergePreference?: Merge.PREFERENCE, mergeOptions?: MergeOptions): Promise<Oid>;
/**
* Rebases a branch onto another branch
*/