-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
docs: form.fields.x.issues() can be undefined
#14628
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
Conversation
|
|
Thank you! While this is true, I wonder - should we instead make |
|
Alternatively we could make Svelte's types match the runtime behaviour. |
|
(is that a language-tools issue? where would we change that if we wanted to?) |
|
Ah right, this changed in Svelte 5 but the types in language tools were not updated to reflect that. Will fix there. |
|
Since <!-- eslint-disable-next-line svelte/require-each-key -->
{#each addId.fields.uuid.issues() as issue}
<p>{issue.message}</p>
{/each}It would this cause inconsistency, but disabling this rule every single time is cumbersome and unclean. |
|
So don't enable it in the first place? Not sure what you're asking |
|
closing in favor of sveltejs/language-tools#2863 |
{#each createPost.fields.title.issues() as issue} {/each} {#each addId.fields.allIssues() as issue} {/each}Please don't delete this checklist! Before submitting the PR, please make sure you do the following:
Tests
pnpm testand lint the project withpnpm lintandpnpm checkChangesets
pnpm changesetand following the prompts. Changesets that add features should beminorand those that fix bugs should bepatch. Please prefix changeset messages withfeat:,fix:, orchore:.Edits