diff --git a/package-lock.json b/package-lock.json
index 31bffe8..6bf4e30 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -43,7 +43,7 @@
"eslint": "^8.6.0",
"jsdom": "^20.0.0",
"prettier": "^2.5.1",
- "typescript": "^4.7.4",
+ "typescript": "^5.0.2",
"vitest": "^0.29.3",
"vue-tsc": "^0.38.1"
},
@@ -7005,16 +7005,16 @@
}
},
"node_modules/typescript": {
- "version": "4.7.4",
- "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.7.4.tgz",
- "integrity": "sha512-C0WQT0gezHuw6AdY1M2jxUO83Rjf0HP7Sk1DtXj6j1EwkQNZrHAg2XPWlq62oqEhYvONq5pkC2Y9oPljWToLmQ==",
+ "version": "5.0.4",
+ "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.0.4.tgz",
+ "integrity": "sha512-cW9T5W9xY37cc+jfEnaUvX91foxtHkza3Nw3wkoF4sSlKn0MONdkdEndig/qPBWXNkmplh3NzayQzCiHM4/hqw==",
"dev": true,
"bin": {
"tsc": "bin/tsc",
"tsserver": "bin/tsserver"
},
"engines": {
- "node": ">=4.2.0"
+ "node": ">=12.20"
}
},
"node_modules/ufo": {
@@ -12971,9 +12971,9 @@
"integrity": "sha512-eaBzG6MxNzEn9kiwvtre90cXaNLkmadMWa1zQMs3XORCXNbsH/OewwbxC5ia9dCxIxnTAsSxXJaa/p5y8DlvJg=="
},
"typescript": {
- "version": "4.7.4",
- "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.7.4.tgz",
- "integrity": "sha512-C0WQT0gezHuw6AdY1M2jxUO83Rjf0HP7Sk1DtXj6j1EwkQNZrHAg2XPWlq62oqEhYvONq5pkC2Y9oPljWToLmQ==",
+ "version": "5.0.4",
+ "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.0.4.tgz",
+ "integrity": "sha512-cW9T5W9xY37cc+jfEnaUvX91foxtHkza3Nw3wkoF4sSlKn0MONdkdEndig/qPBWXNkmplh3NzayQzCiHM4/hqw==",
"dev": true
},
"ufo": {
diff --git a/package.json b/package.json
index 0bf023d..9285057 100644
--- a/package.json
+++ b/package.json
@@ -47,7 +47,7 @@
"eslint": "^8.6.0",
"jsdom": "^20.0.0",
"prettier": "^2.5.1",
- "typescript": "^4.7.4",
+ "typescript": "^5.0.2",
"vitest": "^0.29.3",
"vue-tsc": "^0.38.1"
},
diff --git a/src/components/Game.vue b/src/components/Game.vue
index 680273a..1975696 100644
--- a/src/components/Game.vue
+++ b/src/components/Game.vue
@@ -13,7 +13,7 @@
v-if="layerKeys.includes(tab)"
v-bind="gatherLayerProps(layers[tab]!)"
:index="index"
- @set-minimized="value => (layers[tab]!.minimized.value = value)"
+ @set-minimized="(value: boolean) => (layers[tab]!.minimized.value = value)"
/>
diff --git a/src/components/Layer.vue b/src/components/Layer.vue
index a3fffda..c00cf8a 100644
--- a/src/components/Layer.vue
+++ b/src/components/Layer.vue
@@ -73,10 +73,6 @@ export default defineComponent({
player.tabs.splice(unref(props.index), Infinity);
}
- function setMinimized(min: boolean) {
- minimized.value = min;
- }
-
function updateNodes(nodes: Record) {
props.nodes.value = nodes;
}
diff --git a/src/components/Save.vue b/src/components/Save.vue
index 1ff2496..77d2988 100644
--- a/src/components/Save.vue
+++ b/src/components/Save.vue
@@ -33,7 +33,7 @@
(isConfirming = value)"
+ @confirmingChanged="(value: boolean) => (isConfirming = value)"
>
delete
diff --git a/src/components/SavesManager.vue b/src/components/SavesManager.vue
index 91edd40..b1bf7e0 100644
--- a/src/components/SavesManager.vue
+++ b/src/components/SavesManager.vue
@@ -15,7 +15,7 @@
:save="saves[element]"
@open="openSave(element)"
@export="exportSave(element)"
- @editName="name => editSave(element, name)"
+ @editName="(name: string) => editSave(element, name)"
@duplicate="duplicateSave(element)"
@delete="deleteSave(element)"
/>
@@ -38,7 +38,7 @@
v-if="Object.keys(bank).length > 0"
:options="bank"
:modelValue="selectedPreset"
- @update:modelValue="preset => newFromPreset(preset as string)"
+ @update:modelValue="(preset: unknown) => newFromPreset(preset as string)"
closeOnSelect
placeholder="Select preset"
class="presets"