Ckeditor5: Typescript error TS2370: A rest parameter must be of an array type.

Created on 3 Mar 2020  路  4Comments  路  Source: ckeditor/ckeditor5

ERROR in node_modules/@ckeditor/ckeditor5-angular/ckeditor.d.ts(92,38): error TS2370: A rest parameter must be of an array type.

This error is about callback arguments in Watchdog interface.

interface Watchdog {
setCreator(creator: (...args: any[]) => Promise): void;
setDestructor(destructor: (item: T) => Promise): void;
on(event: string, callback: (...args: any) => any): void;
destroy(): Promise;
create(...args: any[]): Promise;
}

bug

Most helpful comment

Yes, thank you!

All 4 comments

Same here!
Do you find a solution?

Hi! We've just released a new version of ckeditor5-angular package (v1.2.2). Could you please check if it solves your problem?

Yes, thank you!

Great! So, I'm closing the issue.

Was this page helpful?
0 / 5 - 0 ratings