GoogleChrome / chrome-types

Code to parse Chrome's internal extension type definitions—published on NPM as chrome-types

Home Page:https://www.npmjs.com/package/chrome-types

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

navigator.mediaDevices.getUserMedia typescript complains

mp3por opened this issue · comments

I have just copy-pasted the official chrome extension samples into a typescript project and typescript complains eventhough the code works correctly.

image

tsconfig
{ "compilerOptions": { "strict": true, "target": "es6", "moduleResolution": "bundler", "module": "ES6", "esModuleInterop": true, "sourceMap": false, "rootDir": "src", "outDir": "dist/js", "noEmitOnError": true, "jsx": "react", "types": ["chrome-types"] }, }