我已经在public/index.html中加载了google maps API,在开发工具控制台中,我可以很好地记录window.google.maps。 ? 但是TypeScript不知道它在那里,我得到这个错误,Property 'google' does not exist on type 'Window & typeof globalThis'.ts(2339),我如何告诉typescript它确实存在?useRef } from
我看到我的集成开发环境将File识别为Typescript对象。执行refined search in Google会将我带到this page,它与File对象没有任何关系。Typescript中的File对象是否已处理为exactly the same way as in Javascript?有什么突破性的差异吗? 同样,如何在Typescript中实例化文件类型?