How to install DefiniteltyTyped for angular cli?

时间:2017-08-04 12:51:31

标签: angular-cli

I installed https://www.npmjs.com/package/@types/fhir and VSCode is able to resolve the package fine, however when I do ng serve it complains with:

Cannot find namespace 'fhir'.

What could be the difference and how can I resolve it?

1 个答案:

答案 0 :(得分:1)

Got it sorted out with import {} from '@types/fhir';.