mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-03-21 19:43:32 +00:00
fix type
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -24,6 +24,7 @@ import { Interpreter, Parser, utils } from '@syuilo/aiscript';
|
||||
import { useWidgetPropsManager } from './widget.js';
|
||||
import type { WidgetComponentEmits, WidgetComponentExpose, WidgetComponentProps } from './widget.js';
|
||||
import type { FormWithDefault, GetFormResultType } from '@/utility/form.js';
|
||||
import type { Value } from '@syuilo/aiscript/interpreter/value.js';
|
||||
import * as os from '@/os.js';
|
||||
import MkContainer from '@/components/MkContainer.vue';
|
||||
import { aiScriptReadline, createAiScriptEnv } from '@/aiscript/api.js';
|
||||
@@ -83,7 +84,7 @@ const run = async () => {
|
||||
switch (type) {
|
||||
case 'end': logs.value.push({
|
||||
id: genId(),
|
||||
text: utils.valToString(params.val, true),
|
||||
text: utils.valToString(params.val as Value, true),
|
||||
print: false,
|
||||
}); break;
|
||||
default: break;
|
||||
|
||||
Reference in New Issue
Block a user