mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-25 02:57:30 +00:00
Clean up types
This commit is contained in:
parent
0792c51fb8
commit
6cd2181d78
2 changed files with 9 additions and 2 deletions
|
|
@ -135,7 +135,8 @@ class WindowManager extends React.Component<Props> {
|
|||
return windows.map(w => (
|
||||
<div
|
||||
key={w.key}
|
||||
onBlur={e => {
|
||||
// I give up on trying to type things with `relatedTarget`.
|
||||
onBlur={(e: any) => {
|
||||
const { currentTarget, relatedTarget } = e;
|
||||
if (
|
||||
currentTarget === relatedTarget ||
|
||||
|
|
|
|||
|
|
@ -26,7 +26,13 @@ export interface DisplaySerializedStateV1 {
|
|||
skinRegion: { [windowName: string]: string[] };
|
||||
skinGenLetterWidths: { [letter: string]: number } | null;
|
||||
skinColors: string[]; // Theoretically this could be a tuple of a specific length
|
||||
skinPlaylistStyle: { [state: string]: string } | null;
|
||||
skinPlaylistStyle: {
|
||||
normal: string;
|
||||
current: string;
|
||||
normalbg: string;
|
||||
selectedbg: string;
|
||||
font: string;
|
||||
} | null;
|
||||
}
|
||||
|
||||
export interface EqualizerSerializedStateV1 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue