Is there a way to import a $lib
into my svelte project without encountering typescript errors in vscode? The project is building and running smoothly.
import ThemeSwitch from '$lib/ThemeSwitch/ThemeSwitch.svelte';
The error message says "Cannot find module '$lib/ThemeSwitch/ThemeSwitch.svelte' or its corresponding type declarations"
I'm wondering if I need to declare types similar to how Svelte declares page data types.
/** @type {import('./$types').PageData} */