我已經安裝@類型/鉻和tsconfig.app.json它添加如何在angular-cli 1.0.1 app中使用chrome-app.d.ts類型?
"types": [
"chrome"
]
但是,當我在組件中使用chrome.app
,它顯示了一個錯誤:
Property 'app' does not exist on type 'typeof chrome'
@ types/chrome文件夾包含chrome-app.d.ts是我需要的文件,我該如何參考這個
來源https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/chrome