chore(types): scattered the type interfaces

scattered type interfaces wih goal of scalability and easier debug and coding
This commit is contained in:
2026-04-28 01:16:02 +03:30
parent 918972e101
commit 7e21808d69
4 changed files with 86 additions and 63 deletions

View File

@@ -0,0 +1,14 @@
/**
* player state type interface
*
* author: db123 at db
* creation: 28/4/2026
*/
export interface PlayerEvents {
onPlay?: () => void;
onPause?: () => void;
onEnd?: () => void;
onError?: () => void;
onBuffer?: () => void;
}