Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82258

Typescript throwing errors on selected and Buttons extension

$
0
0

I'm using DataTables in Typescript. All was going well, until....

I am using the Buttons extension and installed using npm from here:

npm install datatables.net-buttons
npm install datatables.net-buttons-dt

I have these imports in my code:

import 'datatables.net';
import 'datatables.net-buttons';

Although I am importing datatables-buttons, it causes errors when compiling.

**Object literal may only specify known properties, and 'buttons' does not exist in type 'Settings'.**

Shouldn't that be all I need for Typescript?


Viewing all articles
Browse latest Browse all 82258

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>