When working with SvelteKit, I am utilizing the load function to make an API call. My aim is to utilize the fetch that is provided in the load function - however, my project is written in TypeScript.
I'm curious where I can find the type definitions for fetch, params, and other related properties?
/** @type {import('./$types').PageLoad} */
export async function load ({fetch}) {
const rndInt = randomIntFromInterval(1, 20)
const res = await fetch(`https://jsonplaceholder.typicode.com/todos/${rndInt}`)
item = await res.json();
return {item}
}