Skip to content

Commit

Permalink
update decky libs and remove ts ignores
Browse files Browse the repository at this point in the history
  • Loading branch information
beebls committed Feb 1, 2025
1 parent ff03adb commit 5131f82
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 16 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@
"typescript": "^5.6.3"
},
"dependencies": {
"@decky/api": "^1.0.6",
"@decky/api": "^1.1.2",
"@decky/rollup": "^1.0.1",
"@decky/ui": "^4.4.0",
"@decky/ui": "^4.9.1",
"clsx": "^2.1.1",
"color": "^4.2.3",
"lodash": "^4.17.21",
Expand Down
20 changes: 10 additions & 10 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions src/backend-impl/decky-backend-repository-impl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ class DeckyBackendRepository implements IBackendRepository {
async fetch<Return>(url: string, request: RequestInit, mode: "json" | "text" = "json") {
try {
console.debug("CSSLOADER FETCH", url, request);
// TODO: Think this is a decky types issue
// @ts-ignore
const res = await fetchNoCors(url, request);
if (!res.ok) {
throw new Error(`Res Not Okay - Code ${res.status}`);
Expand Down
3 changes: 1 addition & 2 deletions src/lib/utils/shorten-number.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export function shortenNumber(num: number) {
var exponent;
var size;
var sign = num < 0 ? "-" : "";
var suffixes = {
var suffixes: Record<string, number> = {
K: 6,
M: 9,
B: 12,
Expand All @@ -37,7 +37,6 @@ export function shortenNumber(num: number) {
shortNumber = String(Math.round(10 * (num / Math.pow(10, exponent))) / 10);

for (var suffix in suffixes) {
// @ts-ignore
if (exponent < suffixes[suffix]) {
shortNumber += suffix;
break;
Expand Down

0 comments on commit 5131f82

Please sign in to comment.