1
+ /* eslint-disable @typescript-eslint/no-unsafe-function-type */
1
2
export type DisplayMode = "email" | "web" | "popup" ;
2
3
export type ThemeColor = "light" | "dark" ;
3
4
export type DockPosition = "right" | "left" ;
@@ -203,7 +204,7 @@ export interface CustomButton {
203
204
text : string ;
204
205
icon : string ;
205
206
onSetup : ( ) => object ;
206
- // eslint-disable-next-line @typescript-eslint/ban-types
207
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
207
208
onAction : ( data : any , callback : Function ) => void ;
208
209
}
209
210
@@ -502,7 +503,6 @@ export interface LinkType {
502
503
attrs ?: {
503
504
href ?: string ;
504
505
target ?: string ;
505
- // eslint-disable-next-line @typescript-eslint/ban-types
506
506
onClick ?: string | Function ;
507
507
class ?: string ;
508
508
[ key : string ] : any ;
@@ -528,18 +528,15 @@ export type EditorInstance = {
528
528
* @see https://docs.unlayer.com/docs/custom-columns
529
529
*/
530
530
registerColumns ( cells : number [ ] ) : void ;
531
- // eslint-disable-next-line @typescript-eslint/ban-types
532
531
registerCallback ( type : string , callback : Function ) : void ;
533
532
registerCallback (
534
533
type : "image" ,
535
534
callback : ( file : FileInfo , done : ( data : FileUploadDoneData ) => void ) => void
536
535
) : void ;
537
536
unregisterCallback ( type : string ) : void ;
538
- // eslint-disable-next-line @typescript-eslint/ban-types
539
537
registerProvider ( type : string , callback : Function ) : void ;
540
538
unregisterProvider ( type : string ) : void ;
541
539
reloadProvider ( type : string ) : void ;
542
- // eslint-disable-next-line @typescript-eslint/ban-types
543
540
addEventListener ( type : string , callback : Function ) : void ;
544
541
addEventListener ( type : "editor:ready" , callback : ( ) => void ) : void ;
545
542
addEventListener (
0 commit comments