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. *