diff --git a/types/nodegit/nodegit-tests.ts b/types/nodegit/nodegit-tests.ts index 64d1b2a16c..465b5415b7 100644 --- a/types/nodegit/nodegit-tests.ts +++ b/types/nodegit/nodegit-tests.ts @@ -4,7 +4,7 @@ Git.Repository.discover("startPath", 1, "ceilingDirs").then((string) => { // Use string }); -Git.Repository.init("path", true).then((repository) => { +Git.Repository.init("path", 0).then((repository) => { // Use repository }); diff --git a/types/nodegit/repository.d.ts b/types/nodegit/repository.d.ts index a8882b5d55..b29a411725 100644 --- a/types/nodegit/repository.d.ts +++ b/types/nodegit/repository.d.ts @@ -48,12 +48,12 @@ export class Repository { * * @static * @param {string} path - * @param {boolean} [isBare] + * @param {number} isBare * @returns {Promise} * * @memberof Repository */ - static init(path: string, isBare?: boolean): Promise; + static init(path: string, isBare: number): Promise; /** * *