fix: narrow `defaultChecked` to boolean (#16009)

* fix: narrow `defaultChecked` to boolean

* Update .changeset/mean-taxis-yell.md

---------

Co-authored-by: Rich Harris <hello@rich-harris.dev>
pull/16010/head
Hyunbin Seo 3 months ago committed by GitHub
parent 6e2ba643c5
commit 4e3ff0944d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -0,0 +1,5 @@
---
'svelte': patch
---
fix: narrow `defaultChecked` to boolean

@ -1115,8 +1115,8 @@ export interface HTMLInputAttributes extends HTMLAttributes<HTMLInputElement> {
// needs both casing variants because language tools does lowercase names of non-shorthand attributes
defaultValue?: any;
defaultvalue?: any;
defaultChecked?: any;
defaultchecked?: any;
defaultChecked?: boolean | undefined | null;
defaultchecked?: boolean | undefined | null;
width?: number | string | undefined | null;
webkitdirectory?: boolean | undefined | null;

Loading…
Cancel
Save