Clean up types

This commit is contained in:
Jordan Eldredge 2019-05-01 21:31:13 -07:00
parent 0792c51fb8
commit 6cd2181d78
2 changed files with 9 additions and 2 deletions

View file

@ -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 ||

View file

@ -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 {