[WIP] Improve lazy proxy typing #16

Draft
thepaperpilot wants to merge 4 commits from fix/lazy-proxy-typing into main
Showing only changes of commit 2f8c37d730 - Show all commits

View file

@ -437,7 +437,7 @@ export function estimateTime(
const currTarget = unref(processedTarget); const currTarget = unref(processedTarget);
if (Decimal.gte(resource.value, currTarget)) { if (Decimal.gte(resource.value, currTarget)) {
return "Now"; return "Now";
} else if (Decimal.lt(currRate, 0)) { } else if (Decimal.lte(currRate, 0)) {
return "Never"; return "Never";
} }
return formatTime(Decimal.sub(currTarget, resource.value).div(currRate)); return formatTime(Decimal.sub(currTarget, resource.value).div(currRate));