8000 fix: narrow `defaultChecked` to boolean (#16009) · sveltejs/svelte@4e3ff09 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4e3ff09

Browse files
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>
1 parent 6e2ba64 commit 4e3ff09

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.changeset/mean-taxis-yell.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'svelte': patch
3+
---
4+
5+
fix: narrow `defaultChecked` to boolean

packages/svelte/elements.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1115,8 +1115,8 @@ export interface HTMLInputAttributes extends HTMLAttributes<HTMLInputElement> {
11151115
// needs both casing variants because language tools does lowercase names of non-shorthand attributes
11161116
defaultValue?: any;
11171117
defaultvalue?: any;
1118-
defaultChecked?: any;
1119-
defaultchecked?: any;
1118+
defaultChecked?: boolean | undefined | null;
1119+
defaultchecked?: boolean | undefined | null;
11201120
width?: number | string | undefined | null;
11211121
webkitdirectory?: boolean | undefined | null;
11221122

0 commit comments

Comments
 (0)
0