Replies: 3 comments 7 replies
-
Hi, we currently don't support DataTables v2. I am unable to find time to research this right now. We need to maintain compatibility with both versions if possible. A PR is always welcome :) |
Beta Was this translation helpful? Give feedback.
-
Just a quick note from me to say that DaTables has shipped its own types file since 1.11 and the API has diverged from the edit Worth noting that I also did a lot of renaming of interfaces around 1.13 (or 1.12 - can't recall off the top of my head!) to make them a little more sane. If 1.x compatibility is required, I'd suggest locking it to ^1.13. That said, DataTables 1.x is no longer supported by me (unless the customer has a maintenance package). I'd urge updates to 2.x. |
Beta Was this translation helpful? Give feedback.
-
Responsive 3.0.1 is on npm and should address the issues with typing that I'm aware of. |
Beta Was this translation helpful? Give feedback.
-
I'm a little late upgrading to datatables.net v2, and while I'm doing so, I'm noticing there are now TS type definitions: https://github.com/DataTables/DataTablesSrc/tree/master/types. I'm not a very experienced TS / Angular developer, but these look complete, and it looks like they make @types/datatables.net obsolete for any project using the v2 API.
I tried uninstalling the @types/datatables.net package from my project, and after changing all my code to use the new types in v2 (much has changed and doesn't match the v1 API, though you can still use the v1 API, I think), the only errors I got from ng build were from angular-datatables:
So I re-installed @types/datatables.net, and then got errors due to conflicts in the APIs:
I eventually realized I cannot reference the new v2 APIs direction from the DataTables type definitions, or else it causes build conflicts with angular-datatable's references to @types/datatables.net.
My first question is whether I'm doing anything wrong or misunderstanding that the new type definitions including in DataTables supercede @types/datatables.net?
If not, my second question is whether angular-datatables plan to migrate to the new API?
Apologies if any of these questions are silly or obvious. I searched open & closed questions, commits, and issues. I spend 95% of my time doing C# dev, so what little time I do TS & Angular I often feel a bit lost and n00b-like. Thanks.
Beta Was this translation helpful? Give feedback.
All reactions