feat: made index main export option only

and added plugin type which i will add to it later on
This commit is contained in:
2026-04-22 14:58:18 +03:30
parent cc02d08f9f
commit 4977066961
2 changed files with 7 additions and 19 deletions

View File

@@ -5,22 +5,5 @@
* creation: 21/4/2026
*/
class VP {
videoElement: HTMLElement | null;
videoSources?: NodeListOf<HTMLSourceElement>;
config?: Array<string | boolean>;
/**
* @param {string} video The targeted video element
* @param {Array<string>} config The config array
*/
constructor(video: string, config: Array<string | boolean> = []) {
this.videoElement = document.querySelector(video);
this.videoSources = this.videoElement?.querySelectorAll("source");
this.config = config;
}
private adapters(): void {}
private ui(): void {}
private plugins(): void {}
}
export { VP } from "./core/index";
export type { PlayerConfig, Plugin } from "./types/index";