Skip to content

Commit eeaa775

Browse files
committed
fix callback type
1 parent 2bab314 commit eeaa775

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/v8.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@ export declare class CSInterface {
484484
* @param listener The JavaScript handler function or method.
485485
* @param obj Optional, the object containing the handler method, if any. Default is null.
486486
*/
487-
addEventListener(type: string, listener: any, obj?: object): void;
487+
addEventListener(type: string, listener: (evt: CSEvent) => void, obj?: object): void;
488488
/**
489489
* Removes a registered event listener.
490490
*

src/v8.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@ export class CSInterface {
523523
* @param listener The JavaScript handler function or method.
524524
* @param obj Optional, the object containing the handler method, if any. Default is null.
525525
*/
526-
addEventListener(type: string, listener: any, obj?: object): void {
526+
addEventListener(type: string, listener: (evt: CSEvent) => void, obj?: object): void {
527527
window.__adobe_cep__.addEventListener(type, listener, obj);
528528
}
529529

0 commit comments

Comments
 (0)