mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-20 16:49:52 +00:00
Clarify return type of getWindowsInfo
This commit is contained in:
parent
658403533a
commit
a5485cfb4f
1 changed files with 8 additions and 2 deletions
|
|
@ -1,4 +1,10 @@
|
|||
import { AppState, PlaylistTrack, WebampWindow, WindowId } from "./types";
|
||||
import {
|
||||
AppState,
|
||||
PlaylistTrack,
|
||||
WebampWindow,
|
||||
WindowId,
|
||||
WindowInfo
|
||||
} from "./types";
|
||||
import { createSelector } from "reselect";
|
||||
import {
|
||||
denormalize,
|
||||
|
|
@ -324,7 +330,7 @@ export function getWindowPixelSize(state: AppState, windowId: WindowId) {
|
|||
export const getWindowsInfo = createSelector(
|
||||
getWindowSizes,
|
||||
getWindowPositions,
|
||||
(sizes, positions) =>
|
||||
(sizes, positions): WindowInfo[] =>
|
||||
Object.keys(sizes).map(key => ({ key, ...sizes[key], ...positions[key] }))
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue