mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-21 13:27:15 +08:00
Added Filter
This commit is contained in:
19
types/nodegit/filter.d.ts
vendored
Normal file
19
types/nodegit/filter.d.ts
vendored
Normal 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;
|
||||
}
|
||||
1
types/nodegit/index.d.ts
vendored
1
types/nodegit/index.d.ts
vendored
@@ -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_';
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user