mirror of
https://github.com/zoriya/v10.git
synced 2026-08-16 02:45:09 +00:00
fix: resolve TypeScript build errors across packages
- Fix core packages: @vjs-10/media-store export conflicts, @vjs-10/media interface compatibility - Fix HTML packages: Add @ts-ignore for @open-wc/context-protocol module resolution and custom element constructor compatibility - Fix React packages: Update imports to use monorepo packages, fix state type issues - Add @ts-ignore comments for acceptable workarounds per user guidance - Core architecture now compiles successfully with remaining placeholder package errors 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude
parent
4b472ec49c
commit
374db7afc0
@@ -1,4 +1,4 @@
|
||||
export * from './factory';
|
||||
export * from './media-store';
|
||||
export { createMediaStore } from './media-store';
|
||||
export * from './state-mediators/playable';
|
||||
export * from './state-mediators/audible';
|
||||
@@ -7,7 +7,7 @@ export interface IBaseMediaStateOwner<
|
||||
T extends Pick<HTMLMediaElement, 'src'> = Pick<HTMLMediaElement, 'src'>,
|
||||
> extends EventTarget,
|
||||
Pick<HTMLMediaElement, 'src'> {
|
||||
mediaElement?: T;
|
||||
mediaElement?: T | undefined;
|
||||
}
|
||||
|
||||
export interface IPlayableMediaStateOwner
|
||||
@@ -20,6 +20,7 @@ export interface IAudibleMediaStateOwner
|
||||
IBaseMediaStateOwner,
|
||||
Pick<HTMLMediaElement, 'muted' | 'volume'> {}
|
||||
|
||||
// @ts-ignore - Interface compatibility issues with undefined mediaElement
|
||||
export class PlayableMediaStateOwner
|
||||
extends EventTarget
|
||||
implements IPlayableMediaStateOwner, IAudibleMediaStateOwner
|
||||
|
||||
Reference in New Issue
Block a user