I am trying to integrate datatables.net-buttons 3.1.2 into my typescript project, but I am getting a compiler error on line 88 of datatables.net-buttons/types/types.d.ts (it's in the interface definition for DataTablesStaticExtButtons). The error states "Property 'collection' does not exist on type 'Buttons'". Looking at the definition for the Buttons interface, it doesn't have a property named 'collection'. Not sure if this is something that was meant to be implemented in the Buttons interface and was overlooked, or if line 88 was supposed to be collection: CollectionButtons['collection'];
instead of collection: Buttons['collection'];
, since CollectionButtons does have a property called 'collection'. Either way, someone should check this out and fix the definition so it can be used.
↧
TypeScript definition for datatables.net-buttons broken
↧