From 71abbf7c6d41e89b336336ae41beb0694d98ee2a Mon Sep 17 00:00:00 2001 From: jonmellman Date: Sun, 18 Nov 2018 19:45:56 +0100 Subject: [PATCH] notegit: Add 'start' method to Commit history() return type (#30608) --- types/nodegit/commit.d.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/types/nodegit/commit.d.ts b/types/nodegit/commit.d.ts index 11ab938130..57e8c55d87 100644 --- a/types/nodegit/commit.d.ts +++ b/types/nodegit/commit.d.ts @@ -9,6 +9,10 @@ import { Tree } from './tree'; import { TreeEntry } from './tree-entry'; import { Diff } from './diff'; +export interface HistoryEventEmitter extends EventEmitter { + start(): void; +} + export class Commit { static create(repo: Repository, updateRef: string, author: Signature, committer: Signature, messageEncoding: string, message: string, tree: Tree, parentCount: number, parents: any[]): Oid; static createV(id: Oid, repo: Repository, updateRef: string, author: Signature, committer: Signature, messageEncoding: string, message: string, tree: Tree, parentCount: number): number; @@ -75,11 +79,11 @@ export class Commit { /** * Walk the history from this commit backwards. * An EventEmitter is returned that will emit a "commit" event for each commit in the history, and one "end" - * event when the walk is completed. Don't forget to call start() on the returned event. + * event when the walk is completed. Don't forget to call start() on the returned EventEmitter. * * */ - history(): EventEmitter; + history(): HistoryEventEmitter; /** * Retrieve the commit's parents as commit objects. *