Skip to content

Commit

Permalink
TypeScript definitions - clone can also accept an Options object …
Browse files Browse the repository at this point in the history
…in place of the string array
  • Loading branch information
steveukx committed Jul 28, 2019
1 parent 19eb7b2 commit cbb6fb8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions promise.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,8 @@ declare namespace simplegit {
* @param {string[]} [options] options supported by [git](https://git-scm.com/docs/git-clone).
* @returns {Promise<void>}
*/
clone(repoPath: string, localPath: string, options?: string[]): Promise<void>;
clone(repoPath: string, options?: string[]): Promise<void>;
clone(repoPath: string, localPath: string, options?: Options | string[]): Promise<string>;
clone(repoPath: string, options?: Options | string[]): Promise<string>;

/**
* Commits changes in the current working directory - when specific file paths are supplied, only changes on those
Expand Down

0 comments on commit cbb6fb8

Please sign in to comment.