Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Remove explicit SvelteKit typing #490

Merged
merged 1 commit into from
Nov 19, 2023
Merged

fix: Remove explicit SvelteKit typing #490

merged 1 commit into from
Nov 19, 2023

Conversation

lachlancollins
Copy link
Collaborator

@lachlancollins lachlancollins commented Nov 14, 2023

As per https://svelte.dev/blog/zero-config-type-safety and discussion on #427

Also export async function load(): Promise<PageLoad> actually causes a TS error which is fixed by removing the type. I think this has to do with the difference between typing function declarations and function expressions; the SvelteKit load docs show how to type function expressions which do work in this case.

Copy link

netlify bot commented Nov 14, 2023

Deploy Preview for sveltesociety-preview ready!

Name Link
🔨 Latest commit df3f893
🔍 Latest deploy log https://app.netlify.com/sites/sveltesociety-preview/deploys/6552c33111d7f10008feb614
😎 Deploy Preview https://deploy-preview-490--sveltesociety-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

src/routes/events/+page.svelte Show resolved Hide resolved
@MacFJA MacFJA merged commit b8d5d62 into svelte-society:main Nov 19, 2023
4 checks passed
@lachlancollins lachlancollins deleted the remove-explicit-typing branch November 22, 2023 00:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants