You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-07-06 23:56:13 +02:00
Desktop: Add support for OCR (#8975)
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
import { State } from '../reducer';
|
||||
import eventManager from '../eventManager';
|
||||
import eventManager, { EventName } from '../eventManager';
|
||||
import BaseService from './BaseService';
|
||||
import shim from '../shim';
|
||||
import WhenClause from './WhenClause';
|
||||
@ -110,12 +110,12 @@ export default class CommandService extends BaseService {
|
||||
}
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/ban-types -- Old code before rule was applied
|
||||
public on(eventName: string, callback: Function) {
|
||||
public on(eventName: EventName, callback: Function) {
|
||||
eventManager.on(eventName, callback);
|
||||
}
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/ban-types -- Old code before rule was applied
|
||||
public off(eventName: string, callback: Function) {
|
||||
public off(eventName: EventName, callback: Function) {
|
||||
eventManager.off(eventName, callback);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user