Typescript 导入非类型化JS时防止TS错误
尝试导入非类型化JS函数时,React应用程序中出现以下Typescript错误:Typescript 导入非类型化JS时防止TS错误,typescript,Typescript,尝试导入非类型化JS函数时,React应用程序中出现以下Typescript错误: Variable 'initialiseConfig' implicitly has type 'any' in some locations where its type cannot be determined. TS7034 有没有办法防止TS对某些导入的非类型JS感到不安?您可以使用require语句而不是import。。。在导入没有类型声明的库时从
Variable 'initialiseConfig' implicitly has type 'any' in some locations where its type cannot be determined. TS7034
有没有办法防止TS对某些导入的非类型JS感到不安?您可以使用
require
语句而不是import。。。在导入没有类型声明的库时从