How does visual studio 2015 resolve TypeScript typings (.d.ts files)

前端 未结 2 702
北恋
北恋 2021-01-24 00:43

I added the typings for datatables.net via nuget. After that I kept getting errors like:

Error TS2322 Type \'{ dom: string; }\' is not assignable to type

2条回答
  •  时光取名叫无心
    2021-01-24 01:32

    JQuery DataTables changed rather dramatically (and, in my opinion, much for the better) with version 1.10.x. This is the jquery.dataTables.d.ts file.

    If you are planning to use only version 1.10.x, you should simply delete the 1.9.4 version, which I presume was included for those still using the older versions.

提交回复
热议问题