fix: remaining type issues

This commit is contained in:
DecDuck
2025-09-25 12:13:07 +10:00
parent 55878bdf5f
commit 4c9a2c681a
21 changed files with 120 additions and 136 deletions

View File

@ -224,14 +224,14 @@ const scopes = [
href: "/docs/access/status",
icon: UserGroupIcon,
},
clientData.capabilities["peerAPI"] && {
clientData.capabilities["PeerAPI"] && {
name: "Access the Drop network",
description:
"The client will be able to establish P2P connections with other users to enable features like download aggregation, Remote LAN play and P2P multiplayer.",
href: "/docs/access/network",
icon: LockClosedIcon,
},
clientData.capabilities["cloudSaves"] && {
clientData.capabilities["CloudSaves"] && {
name: "Upload and sync cloud saves",
description:
"The client will be able to upload new cloud saves, and edit your existing ones.",

View File

@ -105,14 +105,14 @@ function input(index: number) {
function select(index: number) {
if (!codeElements.value) return;
if (index >= codeElements.value.length) return;
codeElements.value[index].select();
codeElements.value[index]!.select();
}
function paste(index: number, event: ClipboardEvent) {
const newCode = event.clipboardData!.getData("text/plain");
for (let i = 0; i < newCode.length && i < codeLength; i++) {
code.value[i] = newCode[i];
codeElements.value![i].focus();
code.value[i] = newCode[i]!;
codeElements.value![i]!.focus();
}
event.preventDefault();
}