chrome-types
chrome-types copied to clipboard
navigator.mediaDevices.getUserMedia typescript complains
I have just copy-pasted the official chrome extension samples into a typescript project and typescript complains eventhough the code works correctly.
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"] }, }