Skip to content

Commit

Permalink
Added types
Browse files Browse the repository at this point in the history
  • Loading branch information
evoactivity committed Jul 21, 2023
1 parent d264a8f commit d166d5f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
11 changes: 11 additions & 0 deletions hls-video-element.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { CustomVideoElement } from 'custom-media-element';
import Hls from 'hls.js/dist/hls.mjs';

declare class HLSVideoElement extends CustomVideoElement {
api: Hls | null;
attributeChangedCallback(attrName: string, oldValue: any, newValue: any): void;
load(): Promise<void>;
private destroy(): void;
}

export default HLSVideoElement;
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"description": "Custom element (web component) for playing video using the HTTP Live Streaming (HLS) format. Uses HLS.js.",
"type": "module",
"main": "hls-video-element.js",
"types": "hls-video-element.d.ts",
"files": [],
"scripts": {
"lint": "npx eslint *.js -c ./node_modules/wet-run/.eslintrc.json",
Expand Down

0 comments on commit d166d5f

Please sign in to comment.