mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 19:07:08 +00:00
Added methods to nodegit types corresponding to documentation https://www.nodegit.org/api/diff/#getStats and https://www.nodegit.org/api/diff_stats/
26 lines
623 B
TypeScript
26 lines
623 B
TypeScript
import { Buf } from './buf';
|
|
|
|
export class DiffStats {
|
|
/**
|
|
* @returns - total number of deletions in the diff
|
|
*/
|
|
deletions(): Number;
|
|
|
|
/**
|
|
* @returns - total number of files changed in the diff
|
|
*/
|
|
filesChanged(): Number;
|
|
|
|
/**
|
|
* @returns - total number of insertions in the diff
|
|
*/
|
|
insertions(): Number;
|
|
|
|
/**
|
|
* @param format - Formatting option.
|
|
* @param width - Target width for output (only affects GIT_DIFF_STATS_FULL)
|
|
* @returns - buffer to store the formatted diff statistics in.
|
|
*/
|
|
toBuf(format: Number, width: Number): Promise<Buf>;
|
|
}
|