From 53f8ebfcb57d186d65bcc0bb9a779ae71b2361ff Mon Sep 17 00:00:00 2001 From: Ryan Waskiewicz Date: Thu, 10 Oct 2024 21:28:56 -0400 Subject: [PATCH] fix(types): add controlslist to html declarations prior to this commit, using the `controlslist` attribute in a `video` or `audio` element would result in a type checking error. with this commit, we allow the attribute to take one of three values: - nodownload - nofullscreen - noremoteplayback note that at the time of this writing, only chromium browsers support this attribute. it is the responsibilty of end users to determine if using this attribute is appropraite for their projects. fixes: #6015 --- src/declarations/stencil-public-runtime.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/declarations/stencil-public-runtime.ts b/src/declarations/stencil-public-runtime.ts index 3a029c88b7e..a475beb4cba 100644 --- a/src/declarations/stencil-public-runtime.ts +++ b/src/declarations/stencil-public-runtime.ts @@ -1129,6 +1129,8 @@ export namespace JSXBase { autoPlay?: boolean; autoplay?: boolean | string; controls?: boolean; + controlslist?: 'nodownload' | 'nofullscreen' | 'noremoteplayback'; + controlsList?: 'nodownload' | 'nofullscreen' | 'noremoteplayback'; crossOrigin?: string; crossorigin?: string; loop?: boolean;