From: Evan You Date: Mon, 16 Aug 2021 21:13:37 +0000 (-0400) Subject: types(runtime-dom): fix jsx type for IDE v-model inference X-Git-Tag: v3.2.3~6 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=77223df2d2a2d967811ef76a21e0537734e84e43;p=thirdparty%2Fvuejs%2Fcore.git types(runtime-dom): fix jsx type for IDE v-model inference fix #4321 --- diff --git a/packages/runtime-dom/types/jsx.d.ts b/packages/runtime-dom/types/jsx.d.ts index ec45671b14..e4077ad5d9 100644 --- a/packages/runtime-dom/types/jsx.d.ts +++ b/packages/runtime-dom/types/jsx.d.ts @@ -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 }