diff --git a/types/nodegit/repository.d.ts b/types/nodegit/repository.d.ts index 20da9ce052..710c0531cd 100644 --- a/types/nodegit/repository.d.ts +++ b/types/nodegit/repository.d.ts @@ -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; + createBranch(name: string, commit: Commit | string | Oid, force?: boolean): Promise; /** * 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; - mergeBranches(to: string | Reference, from: string | Reference, signature: Signature, mergePreference: Merge.PREFERENCE, mergeOptions?: MergeOptions): Promise; + mergeBranches(to: string | Reference, from: string | Reference, signature?: Signature, mergePreference?: Merge.PREFERENCE, mergeOptions?: MergeOptions): Promise; /** * Rebases a branch onto another branch */