You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-07-13 00:10:37 +02:00
Tools: Apply rule @typescript-eslint/ban-types
This commit is contained in:
@ -23,6 +23,7 @@ export default class DecryptionWorker {
|
||||
|
||||
private state_ = 'idle';
|
||||
private logger_: Logger;
|
||||
// eslint-disable-next-line @typescript-eslint/ban-types -- Old code before rule was applied
|
||||
public dispatch: Function = () => {};
|
||||
private scheduleId_: any = null;
|
||||
private eventEmitter_: any;
|
||||
@ -45,10 +46,12 @@ export default class DecryptionWorker {
|
||||
return this.logger_;
|
||||
}
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/ban-types -- Old code before rule was applied
|
||||
public on(eventName: string, callback: Function) {
|
||||
return this.eventEmitter_.on(eventName, callback);
|
||||
}
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/ban-types -- Old code before rule was applied
|
||||
public off(eventName: string, callback: Function) {
|
||||
return this.eventEmitter_.removeListener(eventName, callback);
|
||||
}
|
||||
|
Reference in New Issue
Block a user