I've had a hard time being able to get my project to compile with an installed type. I'm using MediaRecorder, and I've installed @types/dom-mediacapture-record. With the default set up I was unable to get MediaRecorder recognized.
I've managed to get things working by 1) not extending @tsconfig/svelte/tsconfig.json and 2) add the specific type along with "svelte" under types: "types": ["sevlte", "@types/dom-mediacapture-record"]. I wasn't able to get this to work using typeRoots
I couldn't find examples of anyone else having this trouble online, so I feel like I must be missing something obvious.