No compilation error without d.ts files

前端 未结 2 650
暗喜
暗喜 2020-12-22 05:14

I would like that the compilation of my TypeScript application fails if I don\'t have the typings (installed and references in TypeScript files) corresponding to external li

2条回答
  •  情歌与酒
    2020-12-22 05:48

    One quick way to make the compiler shut up is to declare the toastr variable as any.

    declare toastr: any;
    

提交回复
热议问题