DefinitelyTyped/types/nodegit/diff-delta.d.ts
Benjamin Schuster-Boeckler 158b37a44f Fixed incorrect types in nodegit class DiffDelta and Blob (#41314)
* Fixes incorrect return types in diff-delta and blob. Should be functions, not direct accessor properties. Also, `rawcontent` returns a wrapper around a Buffer, not a Buffer directly, as `content` does.

* updated package description and version

* fixed missing argument

* Updates jackrabbit types to export namespace for interface and type access. Adds missing options and arguments to a few methods.

* fixed linting issue

* revert changes to jackrabbit
2020-01-02 15:11:55 -08:00

11 lines
233 B
TypeScript

import { DiffFile } from './diff-file';
export class DiffDelta {
status: () => number;
flags: () => number;
similarity: () => number;
nfiles: () => number;
oldFile: () => DiffFile;
newFile: () => DiffFile;
}