chore: new builds & types using tsdown (#20)

This commit is contained in:
Rahim
2025-09-23 23:12:19 +10:00
committed by GitHub
parent 8bb4dcff72
commit 6ad5340b40
142 changed files with 1407 additions and 3468 deletions
@@ -1,12 +1,18 @@
import type { Constructor, CustomElement } from '@open-wc/context-protocol';
import type { MediaStore } from '@vjs-10/media-store';
import { ProviderMixin } from '@open-wc/context-protocol';
import { createMediaStore } from '@vjs-10/media-store';
export class MediaProvider extends ProviderMixin(HTMLElement) {
const ProviderHTMLElement: Constructor<CustomElement> = ProviderMixin(HTMLElement);
export class MediaProvider extends ProviderHTMLElement {
contexts = {
mediaStore: () => {
mediaStore: (): MediaStore => {
return createMediaStore();
},
};
}
// @ts-expect-error - fix types after (Rahim)
customElements.define('media-provider', MediaProvider);