From a0d34940ff91688241f76cfd210ea88bbc68976d Mon Sep 17 00:00:00 2001 From: syuilo <4439005+syuilo@users.noreply.github.com> Date: Sun, 9 Nov 2025 19:43:19 +0900 Subject: fix type --- packages/frontend/src/pages/scratchpad.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'packages/frontend/src/pages') 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; -- cgit v1.2.3-freya