@@ -6,15 +6,33 @@ import type { GlobalLogger } from 'js-logger';
6
6
import type { AutocompleteContext } from './contexts/AutocompleteContext' ;
7
7
import type { CommandContext } from './contexts/CommandContext' ;
8
8
import type { ComponentContext } from './contexts/ComponentContext' ;
9
+ import type { Command } from './Command' ;
10
+ import type { Component } from './Component' ;
11
+ import type { Listener } from './Listener' ;
12
+ import type { Plugin } from './Plugin' ;
9
13
10
14
export enum LoggerEvents {
11
15
'HANDLER_RUN' = 'handlerRun' ,
12
16
'HANDLER_ERROR' = 'handlerError' ,
17
+ 'COMMAND_REGISTERED' = 'commandRegistered' ,
18
+ 'COMMAND_UNREGISTERED' = 'commandUnregistered' ,
19
+ 'COMPONENT_REGISTERED' = 'componentRegistered' ,
20
+ 'COMPONENT_UNREGISTERED' = 'componentUnregistered' ,
21
+ 'LISTENER_REGISTERED' = 'listenerRegistered' ,
22
+ 'LISTENER_UNREGISTERED' = 'listenerUnregistered' ,
23
+ 'PLUGIN_REGISTERED' = 'pluginRegistered' ,
13
24
}
14
25
15
26
export interface LoggerEventsInterface {
16
27
'handlerRun' : ( ctx : AutocompleteContext | CommandContext | ComponentContext ) => void ;
17
28
'handlerError' : ( ctx : AutocompleteContext | CommandContext | ComponentContext , error : any ) => void ;
29
+ 'commandRegistered' : ( command : Command ) => void ;
30
+ 'commandUnregistered' : ( command : Command ) => void ;
31
+ 'componentRegistered' : ( component : Component ) => void ;
32
+ 'componentUnregistered' : ( component : Component ) => void ;
33
+ 'listenerRegistered' : ( listener : Listener ) => void ;
34
+ 'listenerUnregistered' : ( listener : Listener ) => void ;
35
+ 'pluginRegistered' : ( plugin : Plugin ) => void ;
18
36
}
19
37
20
38
export declare interface LoggerClass {
0 commit comments