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

前端 未结 2 681
北恋
北恋 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:38

    Visual studio should be able to pick up definitions automatically.

    To exclude definition from project use "exclude" section of : tsconfig.json to specify what files to exclude.

提交回复
热议问题