Skip to content

Commit 77223df

Browse files
committed
types(runtime-dom): fix jsx type for IDE v-model inference
fix #4321
1 parent 516d464 commit 77223df

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/runtime-dom/types/jsx.d.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ export interface InputHTMLAttributes extends HTMLAttributes {
455455
autocomplete?: string
456456
autofocus?: Booleanish
457457
capture?: boolean | 'user' | 'environment' // https://www.w3.org/tr/html-media-capture/#the-capture-attribute
458-
checked?: Booleanish
458+
checked?: Booleanish | any[] // for IDE v-model multi-checkbox support
459459
crossorigin?: string
460460
disabled?: Booleanish
461461
form?: string
@@ -480,7 +480,7 @@ export interface InputHTMLAttributes extends HTMLAttributes {
480480
src?: string
481481
step?: Numberish
482482
type?: string
483-
value?: string | string[] | number
483+
value?: any // we support :value to be bound to anything w/ v-model
484484
width?: Numberish
485485
}
486486

0 commit comments

Comments
 (0)