chore(types): corrected defenition pose of types
changed where each type is defined in types/ dir for consistency and updated related files.
This commit is contained in:
@@ -5,8 +5,6 @@
|
||||
* creation: 28/4/2026
|
||||
*/
|
||||
|
||||
import { AdapterConfig } from './AdapterAPI';
|
||||
|
||||
export interface PlayerConfig {
|
||||
type: 'native' | 'hls' | 'dash';
|
||||
theme?: 'dark' | 'light';
|
||||
@@ -35,12 +33,16 @@ export interface UIElementConfig {
|
||||
enable?: boolean;
|
||||
vPosition?: 'top' | 'middle' | 'bottom';
|
||||
hPosition?: 'left' | 'middle' | 'right';
|
||||
color?: string | UIElementConfigColor;
|
||||
color?: string | UIElementColorConfig;
|
||||
}
|
||||
|
||||
export interface UIElementConfigColor {
|
||||
export interface UIElementColorConfig {
|
||||
idleColor?: string;
|
||||
activeColor?: string;
|
||||
hoverColor?: string;
|
||||
disabledColor?: string;
|
||||
}
|
||||
|
||||
export interface AdapterConfig {
|
||||
src?: string;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user