chore(types): scattered the type interfaces
scattered type interfaces wih goal of scalability and easier debug and coding
This commit is contained in:
14
src/types/PlaybackState.ts
Normal file
14
src/types/PlaybackState.ts
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user