docs: form.fields.x.issues() can be undefined#14628
docs: form.fields.x.issues() can be undefined#14628hyunbinseo wants to merge 1 commit intosveltejs:mainfrom
form.fields.x.issues() can be undefined#14628Conversation
|
|
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