File tree Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Original file line number Diff line number Diff line change 1+ /* eslint-disable @typescript-eslint/no-unsafe-declaration-merging */
12import EventEmitter from 'events' ;
2- import * as path from 'path' ;
33import InteractionState from './interaction-state' ;
44import { ContextV2 } from './context' ;
55import { PROMPTS , PromptType } from './prompt' ;
@@ -283,11 +283,7 @@ export class TechStackEvent extends InteractionEvent {
283283 }
284284}
285285
286- export interface InteractionHistoryEvents {
287- on ( event : 'event' , listener : ( event : InteractionEvent ) => void ) : void ;
288- }
289-
290- export default class InteractionHistory extends EventEmitter implements InteractionHistoryEvents {
286+ class InteractionHistory extends EventEmitter {
291287 public readonly events : InteractionEvent [ ] = [ ] ;
292288
293289 // eslint-disable-next-line class-methods-use-this
@@ -333,3 +329,10 @@ export default class InteractionHistory extends EventEmitter implements Interact
333329 return state ;
334330 }
335331}
332+
333+ interface InteractionHistory {
334+ on ( event : 'event' , listener : ( event : InteractionEvent ) => void ) : this;
335+ on ( event : string , listener : ( ...args : unknown [ ] ) => void ) : this;
336+ }
337+
338+ export default InteractionHistory ;
Original file line number Diff line number Diff line change @@ -8,7 +8,6 @@ import InteractionHistory, {
88 AgentSelectionEvent ,
99 ClassificationEvent ,
1010 InteractionEvent ,
11- InteractionHistoryEvents ,
1211} from './interaction-history' ;
1312import { ContextV2 } from './context' ;
1413import ProjectInfoService from './services/project-info-service' ;
@@ -48,7 +47,7 @@ export interface ClientRequest {
4847 prompt ?: string ;
4948}
5049
51- export interface INavie extends InteractionHistoryEvents {
50+ export interface INavie {
5251 on ( event : 'event' , listener : ( event : InteractionEvent ) => void ) : void ;
5352
5453 on ( event : 'agent' , listener : ( agent : string ) => void ) : void ;
You can’t perform that action at this time.
0 commit comments