From 7d158f64f897b65d19f75a957550faa6bff8960f Mon Sep 17 00:00:00 2001 From: shinhwagk Date: Mon, 11 Feb 2019 15:31:06 +0800 Subject: [PATCH] addAll function parameters not necessary. https://github.com/nodegit/nodegit/search?q=addAll&unscoped_q=addAll https://github.com/nodegit/nodegit/blob/master/examples/index-add-and-remove.js addAll function parameters not necessary. --- types/nodegit/index_.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/nodegit/index_.d.ts b/types/nodegit/index_.d.ts index 932691a89c..1fce02c942 100644 --- a/types/nodegit/index_.d.ts +++ b/types/nodegit/index_.d.ts @@ -26,7 +26,7 @@ export class Index { static open(indexPath: string): Promise; add(sourceEntry: IndexEntry): number; - addAll(pathspec: Strarray | string | string[], flags: number, callback?: Function): Promise; + addAll(pathspec?: Strarray | string | string[], flags?: number, callback?: Function): Promise; addByPath(path: string): Promise; caps(): number; checksum(): Oid;