Skip to content

Commit f4b48e9

Browse files
authored
fix(types): add controlslist to html declarations (#6026)
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
1 parent 5c4c969 commit f4b48e9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/declarations/stencil-public-runtime.ts

+2
Original file line numberDiff line numberDiff line change
@@ -1129,6 +1129,8 @@ export namespace JSXBase {
11291129
autoPlay?: boolean;
11301130
autoplay?: boolean | string;
11311131
controls?: boolean;
1132+
controlslist?: 'nodownload' | 'nofullscreen' | 'noremoteplayback';
1133+
controlsList?: 'nodownload' | 'nofullscreen' | 'noremoteplayback';
11321134
crossOrigin?: string;
11331135
crossorigin?: string;
11341136
loop?: boolean;

0 commit comments

Comments
 (0)