I'm confused by the svelte-kit docs.
I started an empty project, trying to get to know svelte, trying to create a basic app.
I want to do dynamic routes and as a base for my +page.ts file i used this.
I see types being imported via the jsdoc annotation, but how do I import them the usual way, like import { Stuff } from "./$types"
. This doesn't seem to work. And actually the PageLoad
type imported via jsdoc syntax also doesn't provide any typing - I see a warning saying that params
has any
type.
Is there a good basic example app written in TypeScript? Examples that I found were outdated.
I'm using WebStorm.