mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-23 01:57:29 +00:00
Add more types for our constants
This commit is contained in:
parent
9cce2c1c78
commit
91ddff85ef
1 changed files with 9 additions and 3 deletions
|
|
@ -1,4 +1,10 @@
|
|||
import { Band, MediaTagRequestStatus, MediaStatus } from "./types";
|
||||
import {
|
||||
Band,
|
||||
MediaTagRequestStatus,
|
||||
MediaStatus,
|
||||
LoadStyle,
|
||||
TimeMode
|
||||
} from "./types";
|
||||
import * as baseSkin from "./baseSkin.json";
|
||||
export const BANDS: Band[] = [
|
||||
60,
|
||||
|
|
@ -19,7 +25,7 @@ export const WINDOWS = {
|
|||
EQUALIZER: "equalizer"
|
||||
};
|
||||
|
||||
export const LOAD_STYLE = {
|
||||
export const LOAD_STYLE: Record<LoadStyle, LoadStyle> = {
|
||||
BUFFER: "BUFFER",
|
||||
PLAY: "PLAY"
|
||||
};
|
||||
|
|
@ -58,7 +64,7 @@ export const VISUALIZER_ORDER = [
|
|||
VISUALIZERS.NONE
|
||||
];
|
||||
|
||||
export const TIME_MODE = {
|
||||
export const TIME_MODE: Record<TimeMode, TimeMode> = {
|
||||
ELAPSED: "ELAPSED",
|
||||
REMAINING: "REMAINING"
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue