Skip to content
This repository has been archived by the owner on May 17, 2024. It is now read-only.

Commit

Permalink
fix: add mixin types
Browse files Browse the repository at this point in the history
  • Loading branch information
luwes committed Dec 17, 2023
1 parent 24a16f1 commit 09ecbde
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions hls-video-element.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
import { CustomVideoElement } from 'custom-media-element';
import Hls from 'hls.js';

declare class HLSVideoElement extends CustomVideoElement {
type HlsVideoElementConstructor<T> = { new(): T };

export function HlsVideoMixin(superclass: any): HlsVideoElementConstructor<HLSVideoElement>;

export class HLSVideoElement extends CustomVideoElement {
/**
* The current instance of the HLS.js library.
*
Expand All @@ -18,11 +22,6 @@ declare class HLSVideoElement extends CustomVideoElement {
*/
attributeChangedCallback(attrName: string, oldValue: any, newValue: any): void;

/**
* Loads the HLS.js instance and attach it to the video element.
*/
load(): Promise<void>;

/**
* Unloads the HLS.js instance and detaches it from the video element.
*/
Expand Down

0 comments on commit 09ecbde

Please sign in to comment.