All extensions produce errors on compile

All extensions produce errors on compile

chrchechrche Posts: 1Questions: 1Answers: 0

Hello,
I am new to DataTables and I was experimenting with various extensions. I installed the extensions via npm and imported them, but on compile they produce various errors.
For example, datatables.net-select-dt produces the errors below.
I have only noticed one discussion, which has the same error as me for database.net-buttons, but it doesn't seem to be resolved.
Error: node_modules/datatables.net-select/types/types.d.ts:155:11 - error TS7006: Parameter 'flag' implicitly has an 'any' type.

155 blurable(flag): Api;
~~~~

Error: node_modules/datatables.net-select/types/types.d.ts:170:7 - error TS7006: Parameter 'flag' implicitly has an 'any' type.

170 info(flag): Api;
~~~~

Error: node_modules/datatables.net-select/types/types.d.ts:229:13 - error TS7006: Parameter 'set' implicitly has an 'any' type.

229 toggleable(set): Api;
~~~

Error: node_modules/datatables.net/types/types.d.ts:1356:18 - error TS2430: Interface 'ApiCellMethods<T>' incorrectly extends interface 'Omit<Api<T>, "render">'.
Types of property 'select' are incompatible.
Type '() => Api<T>' is missing the following properties from type 'ApiSelect<Api<T>>': blurable, info, items, selector, and 2 more.

1356 export interface ApiCellMethods<T> extends Omit<Api<T>, 'render'> {
~~~~~~~~~~~~~~

Error: node_modules/datatables.net/types/types.d.ts:1440:18 - error TS2430: Interface 'ApiCellsMethods<T>' incorrectly extends interface 'Omit<Api<T>, "data" | "render">'.
Types of property 'select' are incompatible.
Type '() => Api<T>' is missing the following properties from type 'ApiSelect<Api<T>>': blurable, info, items, selector, and 2 more.

1440 export interface ApiCellsMethods<T> extends Omit<Api<T>, 'data' | 'render'> {
~~~~~~~~~~~~~~~

Error: node_modules/datatables.net/types/types.d.ts:1834:18 - error TS2430: Interface 'ApiRowMethods<T>' incorrectly extends interface 'Omit<Api<T>, "data">'.
Types of property 'select' are incompatible.
Type '() => Api<T>' is missing the following properties from type 'ApiSelect<Api<T>>': blurable, info, items, selector, and 2 more.

1834 export interface ApiRowMethods<T> extends Omit<Api<T>, 'data'> {
~~~~~~~~~~~~~

Error: node_modules/datatables.net/types/types.d.ts:1928:18 - error TS2430: Interface 'ApiRowsMethods<T>' incorrectly extends interface 'Api<T>'.
Types of property 'select' are incompatible.
Type '() => Api<T>' is missing the following properties from type 'ApiSelect<Api<T>>': blurable, info, items, selector, and 2 more.

1928 export interface ApiRowsMethods<T> extends Api<T> {
~~~~~~~~~~~~~~

Answers

  • allanallan Posts: 63,679Questions: 1Answers: 10,498 Site admin

    Thank you - it looks like noImplicitAny from Typescript is causing some issues for us. I've corrected Select here.

    I'll need to go around the other extensions and check them - there will probably be some other issues as well.

    Allan

Sign In or Register to comment.