refactor: separate type and value exports

Improves TypeScript export organization by explicitly distinguishing between value exports and type exports.

Separates the module export into two distinct export statements to follow TypeScript best practices, making it clearer which exports are runtime values versus compile-time types.
This commit is contained in:
Uruk
2025-10-09 16:16:22 +02:00
parent 2b2797005a
commit 59e9913c78

View File

@@ -1,4 +1,4 @@
import {
import type {
ChapterInfo,
PlaybackStatePayload,
ProgressUpdatePayload,
@@ -12,16 +12,20 @@ import {
} from "./VlcPlayer.types";
import VlcPlayerView from "./VlcPlayerView";
export {
VlcPlayerView,
VlcPlayerViewProps,
VlcPlayerViewRef,
// Component
export { VlcPlayerView };
// Component Types
export type { VlcPlayerViewProps, VlcPlayerViewRef };
// Media Types
export type { ChapterInfo, TrackInfo, VlcPlayerSource };
// Playback Events (alphabetically sorted)
export type {
PlaybackStatePayload,
ProgressUpdatePayload,
VideoLoadStartPayload,
VideoStateChangePayload,
VideoProgressPayload,
VlcPlayerSource,
TrackInfo,
ChapterInfo,
VideoStateChangePayload,
};