I'm finding the svelte-kit documentation confusing.
Starting from scratch with an empty project, I am on a mission to learn about Svelte and build a simple application.
I want to implement dynamic routes in my project, and for my +page.ts file, I referred to this.
In the documentation, types are being imported using jsdoc annotations. However, I am struggling to import them in the traditional way like
import { Stuff } from "./$types"
. This approach doesn't seem to be effective. Additionally, importing the PageLoad
type via jsdoc syntax is not providing any typing - there is a warning indicating that params
has the any
type.
Are there any up-to-date examples of a basic TypeScript app available? The ones I came across were outdated.
I am utilizing WebStorm as my development environment.