Why are the types wrong for datatables.net-select v2.1.0?

Why are the types wrong for datatables.net-select v2.1.0?

panchopunchopanchopuncho Posts: 2Questions: 1Answers: 0

Install datatables.net-select@2.1.0 and try to compile with TypeScript.

See error failing compilation: Module '"datatables.net"' has no exported member 'ObjectColumnRender'. Did you mean to use 'import ObjectColumnRender from "datatables.net"' instead?

As the warning states, the ObjectColumnRender is not exported on datatables.net.

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,689Questions: 1Answers: 10,500 Site admin
    Answer ✓

    Apologies - I used an interface name which wasn't exported. It was reported here and fixed here.

    The fix will be in DataTables 2.1.8 which I expect to ship next week.

    Allan

  • panchopunchopanchopuncho Posts: 2Questions: 1Answers: 0

    Perfect. Much appreciated

Sign In or Register to comment.