From e4709de5c0e0126077895331f1d87586cf926aea Mon Sep 17 00:00:00 2001 From: HcySunYang Date: Tue, 18 May 2021 12:28:55 +0800 Subject: [PATCH 1/2] fix(types): fix the type of capture attribute --- packages/runtime-dom/types/jsx.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/runtime-dom/types/jsx.d.ts b/packages/runtime-dom/types/jsx.d.ts index cd4133a9af1..e06d3efd704 100644 --- a/packages/runtime-dom/types/jsx.d.ts +++ b/packages/runtime-dom/types/jsx.d.ts @@ -469,7 +469,7 @@ export interface InputHTMLAttributes extends HTMLAttributes { alt?: string autocomplete?: string autofocus?: boolean - capture?: boolean // https://www.w3.org/tr/html-media-capture/#the-capture-attribute + capture?: boolean | string // https://www.w3.org/tr/html-media-capture/#the-capture-attribute checked?: boolean crossorigin?: string disabled?: boolean From 068cdc17de35212f4816a5cc755986abb6f4705a Mon Sep 17 00:00:00 2001 From: HcySunYang Date: Tue, 18 May 2021 16:37:44 +0800 Subject: [PATCH 2/2] fix: use keywords --- packages/runtime-dom/types/jsx.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/runtime-dom/types/jsx.d.ts b/packages/runtime-dom/types/jsx.d.ts index e06d3efd704..504adbde2d1 100644 --- a/packages/runtime-dom/types/jsx.d.ts +++ b/packages/runtime-dom/types/jsx.d.ts @@ -469,7 +469,7 @@ export interface InputHTMLAttributes extends HTMLAttributes { alt?: string autocomplete?: string autofocus?: boolean - capture?: boolean | string // https://www.w3.org/tr/html-media-capture/#the-capture-attribute + capture?: 'user' | 'environment' // https://www.w3.org/tr/html-media-capture/#the-capture-attribute checked?: boolean crossorigin?: string disabled?: boolean