Skip to content

Commit 6d0b324

Browse files
committed
typings
1 parent 4010913 commit 6d0b324

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

packages/svelte/elements.d.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1085,6 +1085,11 @@ export interface HTMLInputAttributes extends HTMLAttributes<HTMLInputElement> {
10851085
step?: number | string | undefined | null;
10861086
type?: HTMLInputTypeAttribute | undefined | null;
10871087
value?: any;
1088+
// needs both casing variants because language tools does lowercase names of non-shorthand attributes
1089+
defaultValue?: any;
1090+
defaultvalue?: any;
1091+
defaultChecked?: any;
1092+
defaultchecked?: any;
10881093
width?: number | string | undefined | null;
10891094
webkitdirectory?: boolean | undefined | null;
10901095

@@ -1366,6 +1371,9 @@ export interface HTMLTextareaAttributes extends HTMLAttributes<HTMLTextAreaEleme
13661371
required?: boolean | undefined | null;
13671372
rows?: number | undefined | null;
13681373
value?: string | string[] | number | undefined | null;
1374+
// needs both casing variants because language tools does lowercase names of non-shorthand attributes
1375+
defaultValue?: string | string[] | number | undefined | null;
1376+
defaultvalue?: string | string[] | number | undefined | null;
13691377
wrap?: 'hard' | 'soft' | undefined | null;
13701378

13711379
'on:change'?: ChangeEventHandler<HTMLTextAreaElement> | undefined | null;

0 commit comments

Comments
 (0)