Skip to content

Commit

Permalink
fix: minor type fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ctot-nondef committed Nov 28, 2023
1 parent 9b2f1e4 commit e4a70a3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions stores/use-windows-store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -292,10 +292,14 @@ export const useWindowsStore = defineStore("windows", () => {

registry.value.forEach((w) => {
windowStates.push({
// @ts-expect-error Property missing in upstream types.
x: viewportPercentageWith2DigitPrecision(w.winbox.x as number, "width"),
// @ts-expect-error Property missing in upstream types.
y: viewportPercentageWith2DigitPrecision(w.winbox.y as number, "height"),
z: w.winbox.index,
// @ts-expect-error Property missing in upstream types.
width: viewportPercentageWith2DigitPrecision(w.winbox.width as number, "width"),
// @ts-expect-error Property missing in upstream types.
height: viewportPercentageWith2DigitPrecision(w.winbox.height as number, "height"),
kind: w.kind,
title: w.winbox.title,
Expand Down

0 comments on commit e4a70a3

Please sign in to comment.