]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
types(runtime-dom): fix jsx type for IDE v-model inference
authorEvan You <yyx990803@gmail.com>
Mon, 16 Aug 2021 21:13:37 +0000 (17:13 -0400)
committerEvan You <yyx990803@gmail.com>
Mon, 16 Aug 2021 21:13:37 +0000 (17:13 -0400)
fix #4321

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

index ec45671b142c8e76a9886289b92da5834ec69d48..e4077ad5d97a490a71617b5493516ae1c3c3ee3f 100644 (file)
@@ -455,7 +455,7 @@ export interface InputHTMLAttributes extends HTMLAttributes {
   autocomplete?: string
   autofocus?: Booleanish
   capture?: boolean | 'user' | 'environment' // https://www.w3.org/tr/html-media-capture/#the-capture-attribute
-  checked?: Booleanish
+  checked?: Booleanish | any[] // for IDE v-model multi-checkbox support
   crossorigin?: string
   disabled?: Booleanish
   form?: string
@@ -480,7 +480,7 @@ export interface InputHTMLAttributes extends HTMLAttributes {
   src?: string
   step?: Numberish
   type?: string
-  value?: string | string[] | number
+  value?: any // we support :value to be bound to anything w/ v-model
   width?: Numberish
 }