Added Filter

This commit is contained in:
Dolan
2017-06-07 02:26:29 +01:00
parent a0ed80ee2d
commit 4e0dccc6e7
3 changed files with 21 additions and 0 deletions

19
types/nodegit/filter.d.ts vendored Normal file
View File

@@ -0,0 +1,19 @@
import { Repository } from './repository';
import { Blob } from './blob';
import { Buf } from './buf';
export class Filter {
static listContains(filters: any, name: string): number;
static listLength(fl: any): number;
static listNew(repo: Repository, mode: number, options: number): Promise<any>;
static listStreamBlob(filters: any, blob: Blob, target: Writestream): number;
static listStreamData(filters: any, data: Buf, target: Writestream): number;
static listStreamFile(filters: any, repo: Repository, path: string, target: Writestream): number;
static unregister(name: string): number;
lookup(name: string): Filter;
register(name: string, priority: number): number;
version: number;
attributes: string;
stream: Function;
}

View File

@@ -16,6 +16,7 @@ export { DiffPerfdata } from './diff-perf-data';
export { Diff } from './diff';
export { Enums } from './enums';
export { FetchOptions } from './fetch-options';
export { Filter } from './filter';
export { Giterr } from './git-err';
export { Hashsig } from './hash-sig';
export { Index } from './index_';

View File

@@ -29,6 +29,7 @@
"diff.d.ts",
"enums.d.ts",
"fetch-options.d.ts",
"filter.d.ts",
"git-err.d.ts",
"hash-sig.d.ts",
"ignore.d.ts",