summaryrefslogtreecommitdiff
path: root/packages/frontend/src/pages/scratchpad.vue
diff options
context:
space:
mode:
Diffstat (limited to 'packages/frontend/src/pages/scratchpad.vue')
-rw-r--r--packages/frontend/src/pages/scratchpad.vue3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/frontend/src/pages/scratchpad.vue b/packages/frontend/src/pages/scratchpad.vue
index d73363d058..4e02556c83 100644
--- a/packages/frontend/src/pages/scratchpad.vue
+++ b/packages/frontend/src/pages/scratchpad.vue
@@ -60,6 +60,7 @@ import { Interpreter, Parser, utils } from '@syuilo/aiscript';
import type { Ref } from 'vue';
import type { AsUiComponent } from '@/aiscript/ui.js';
import type { AsUiRoot } from '@/aiscript/ui.js';
+import type { Value } from '@syuilo/aiscript/interpreter/value.js';
import MkContainer from '@/components/MkContainer.vue';
import MkButton from '@/components/MkButton.vue';
import MkTextarea from '@/components/MkTextarea.vue';
@@ -141,7 +142,7 @@ async function run() {
switch (type) {
case 'end': logs.value.push({
id: Math.random(),
- text: utils.valToString(params.val, true),
+ text: utils.valToString(params.val as Value, true),
print: false,
}); break;
default: break;