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

[create-svelte] Non TS demo app has type errors for the enhance action #4427

Closed
gtm-nayan opened this issue Mar 23, 2022 · 1 comment
Closed

Comments

@gtm-nayan
Copy link
Contributor

Describe the bug

Without Typescript declarations marking them as optional, the type of the parameters to the action is inferred as { pending: any; error: any; result: any; } with all three fields required causing errors everywhere enhance is used in todos/index.svelte.

Reproduction

Default create-svelte template without Typescript

Logs

No response

System Info

.

Severity

annoyance

Additional Information

https://discord.com/channels/457912077277855764/956030069229359154

@Rich-Harris
Copy link
Member

closing in favour of #4428

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 a pull request may close this issue.

2 participants