File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 1
1
import { Socket } from 'net' ;
2
+ import { EventEmitter } from 'events' ;
2
3
3
4
/**
4
5
* The types described here were added on an adhoc basis based on requirements in the Powersync Service.
@@ -177,7 +178,7 @@ export interface MySQLConnection {
177
178
query ( sql : string , callback : ( error : any , results : any , fields : any ) => void ) : void ;
178
179
}
179
180
180
- export declare class ZongJi {
181
+ export declare class ZongJi extends EventEmitter {
181
182
stopped : boolean ;
182
183
connection : MySQLConnection ;
183
184
constructor ( options : ZongjiOptions ) ;
@@ -186,6 +187,4 @@ export declare class ZongJi {
186
187
stop ( ) : void ;
187
188
pause ( ) : void ;
188
189
resume ( ) : void ;
189
-
190
- on ( type : 'binlog' | string , callback : ( event : BinLogEvent ) => void ) : void ;
191
190
}
You can’t perform that action at this time.
0 commit comments