Skip to content

Commit

Permalink
Merge pull request #173 from ckeditor/i/172
Browse files Browse the repository at this point in the history
Fix: Fixed typings for `Watchdog` to make old TS compilers happy. Closes #172.
  • Loading branch information
ma2ciek authored Mar 4, 2020
2 parents d2d1405 + 62e74d7 commit 2a3d121
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ckeditor/ckeditor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export namespace CKEditor5 {
export interface Watchdog<T> {
setCreator( creator: ( ...args: any[] ) => Promise<T> ): void;
setDestructor( destructor: ( item: T ) => Promise<void> ): void;
on( event: string, callback: ( ...args: any ) => any ): void;
on( event: string, callback: ( ...args: any[] ) => any ): void;
destroy(): Promise<void>;
create( ...args: any[] ): Promise<void>;
}
Expand Down

0 comments on commit 2a3d121

Please sign in to comment.