Added Fetch

This commit is contained in:
Dolan
2017-06-07 02:30:05 +01:00
parent 27d38b770f
commit df90245f99
3 changed files with 15 additions and 0 deletions

13
types/nodegit/fetch.d.ts vendored Normal file
View File

@@ -0,0 +1,13 @@
import { FetchOptions } from './fetch-options';
export namespace Fetch {
enum PRUNE {
GIT_FETCH_PRUNE_UNSPECIFIED = 0,
GIT_FETCH_PRUNE = 1,
GIT_FETCH_NO_PRUNE = 2
}
}
export class Fetch {
static initOptions(opts: FetchOptions, version: number): number;
}

View File

@@ -17,6 +17,7 @@ export { Diff } from './diff';
export { Enums } from './enums';
export { Error } from './error';
export { FetchOptions } from './fetch-options';
export { Fetch } from './fetch';
export { Filter } from './filter';
export { Giterr } from './git-err';
export { Hashsig } from './hash-sig';

View File

@@ -30,6 +30,7 @@
"enums.d.ts",
"error.d.ts",
"fetch-options.d.ts",
"fetch.d.ts",
"filter.d.ts",
"git-err.d.ts",
"hash-sig.d.ts",