💻Developer with 35+ years of code in my veins. ✨Geeking over Svelte & SvelteKit, Divi on WordPress, and Salesforce Admin/Dev. Passionate about A11y, Sustainability in software, remote working and coffee.
Solution: Remove fallback and assign to it later; add undefined| to the property type.
Solution: Remove fallback and assign to it later; add undefined| to the property type.
interface Props {
data: any;
form: any;
}
To get error checking and auto-complete help, change it to:
import type { PageData, ActionData } from "./$types";
interface Props {
data: PageData;
form: ActionData;
}
interface Props {
data: any;
form: any;
}
To get error checking and auto-complete help, change it to:
import type { PageData, ActionData } from "./$types";
interface Props {
data: PageData;
form: ActionData;
}
My solution: put such logic in +page.ts
My solution: put such logic in +page.ts
Yes, around 40 hours.
I'll reply on my post about the learnings...
Yes, around 40 hours.
I'll reply on my post about the learnings...