From 59e9913c783905363bb90701e3bccaa8dc4e56e6 Mon Sep 17 00:00:00 2001 From: Uruk Date: Thu, 9 Oct 2025 16:16:22 +0200 Subject: [PATCH] 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. --- modules/index.ts | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/modules/index.ts b/modules/index.ts index 63eb373e..aa4b7647 100644 --- a/modules/index.ts +++ b/modules/index.ts @@ -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, };