diff --git a/frontends/nextjs/src/lib/lua/functions/sandbox/execute-with-timeout.ts b/frontends/nextjs/src/lib/lua/functions/sandbox/execute-with-timeout.ts index 21772b442..a62f7cd4d 100644 --- a/frontends/nextjs/src/lib/lua/functions/sandbox/execute-with-timeout.ts +++ b/frontends/nextjs/src/lib/lua/functions/sandbox/execute-with-timeout.ts @@ -1,11 +1,11 @@ import type { LuaExecutionContext, LuaExecutionResult } from '../types' -import type { SandboxedLuaEngine } from '../../sandboxed-lua-engine' +import type { SandboxedLuaEngineState } from './types' /** * Execute Lua code with a timeout guard */ export function executeWithTimeout( - this: SandboxedLuaEngine, + this: SandboxedLuaEngineState, code: string, context: LuaExecutionContext ): Promise { diff --git a/frontends/nextjs/src/lib/lua/functions/sandbox/setup-sandboxed-environment.ts b/frontends/nextjs/src/lib/lua/functions/sandbox/setup-sandboxed-environment.ts index 6503bef8c..124b668b7 100644 --- a/frontends/nextjs/src/lib/lua/functions/sandbox/setup-sandboxed-environment.ts +++ b/frontends/nextjs/src/lib/lua/functions/sandbox/setup-sandboxed-environment.ts @@ -1,12 +1,12 @@ import * as fengari from 'fengari-web' -import type { SandboxedLuaEngine } from '../../sandboxed-lua-engine' +import type { SandboxedLuaEngineState } from './types' const lua = fengari.lua /** * Replace globals with a safe sandbox environment */ -export function setupSandboxedEnvironment(this: SandboxedLuaEngine): void { +export function setupSandboxedEnvironment(this: SandboxedLuaEngineState): void { if (!this.engine) return const { L } = this.engine