mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 12:56:46 +08:00
Repository.init method has a mandatory isBare parameter of type number.
This commit is contained in:
@@ -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
|
||||
});
|
||||
|
||||
|
||||
4
types/nodegit/repository.d.ts
vendored
4
types/nodegit/repository.d.ts
vendored
@@ -48,12 +48,12 @@ export class Repository {
|
||||
*
|
||||
* @static
|
||||
* @param {string} path
|
||||
* @param {boolean} [isBare]
|
||||
* @param {number} isBare
|
||||
* @returns {Promise<Repository>}
|
||||
*
|
||||
* @memberof Repository
|
||||
*/
|
||||
static init(path: string, isBare?: boolean): Promise<Repository>;
|
||||
static init(path: string, isBare: number): Promise<Repository>;
|
||||
/**
|
||||
*
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user