diff --git a/etc/aiscript.api.md b/etc/aiscript.api.md index 34eb9211..ad73857f 100644 --- a/etc/aiscript.api.md +++ b/etc/aiscript.api.md @@ -34,6 +34,13 @@ abstract class AiScriptError extends Error { pos?: Pos; } +// @public +class AiScriptHostsideError extends AiScriptError { + constructor(message: string, info?: unknown); + // (undocumented) + name: string; +} + // @public class AiScriptIndexOutOfRangeError extends AiScriptRuntimeError { constructor(message: string, info?: unknown); @@ -281,7 +288,8 @@ declare namespace errors { AiScriptNamespaceError, AiScriptRuntimeError, AiScriptIndexOutOfRangeError, - AiScriptUserError + AiScriptUserError, + AiScriptHostsideError } } export { errors } @@ -391,6 +399,8 @@ export class Interpreter { log?(type: string, params: LogObject): void; maxStep?: number; abortOnError?: boolean; + irqRate?: number; + irqSleep?: number | (() => Promise); }); // (undocumented) abort(): void; @@ -854,7 +864,7 @@ type VUserFn = VFnBase & { // Warnings were encountered during analysis: // -// src/interpreter/index.ts:39:4 - (ae-forgotten-export) The symbol "LogObject" needs to be exported by the entry point index.d.ts +// src/interpreter/index.ts:38:4 - (ae-forgotten-export) The symbol "LogObject" needs to be exported by the entry point index.d.ts // src/interpreter/value.ts:46:2 - (ae-forgotten-export) The symbol "Type" needs to be exported by the entry point index.d.ts // (No @packageDocumentation comment for this package) diff --git a/playground/src/App.vue b/playground/src/App.vue index 8a870b1a..9fb1351a 100644 --- a/playground/src/App.vue +++ b/playground/src/App.vue @@ -1,6 +1,7 @@