Skip to content

Commit

Permalink
Alias type to be clearer
Browse files Browse the repository at this point in the history
  • Loading branch information
jtran committed Jan 4, 2025
1 parent e1e3d81 commit 3d67d0f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lang/wasm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import { Configuration } from 'wasm-lib/kcl/bindings/Configuration'
import { DeepPartial } from 'lib/types'
import { ProjectConfiguration } from 'wasm-lib/kcl/bindings/ProjectConfiguration'
import { Sketch } from '../wasm-lib/kcl/bindings/Sketch'
import { ExecOutcome } from 'wasm-lib/kcl/bindings/ExecOutcome'
import { ExecOutcome as RustExecOutcome } from 'wasm-lib/kcl/bindings/ExecOutcome'
import { ProgramMemory as RawProgramMemory } from '../wasm-lib/kcl/bindings/ProgramMemory'
import { EnvironmentRef } from '../wasm-lib/kcl/bindings/EnvironmentRef'
import { Environment } from '../wasm-lib/kcl/bindings/Environment'
Expand Down Expand Up @@ -260,7 +260,7 @@ export function emptyExecState(): ExecState {
}
}

function execStateFromRust(execOutcome: ExecOutcome): ExecState {
function execStateFromRust(execOutcome: RustExecOutcome): ExecState {
return {
memory: ProgramMemory.fromRaw(execOutcome.memory),
operations: execOutcome.operations,
Expand Down Expand Up @@ -535,7 +535,7 @@ export const _executor = async (
jsAppSettings = getAllCurrentSettings(lastSettingsSnapshot)
}
}
const execOutcome: ExecOutcome = await execute(
const execOutcome: RustExecOutcome = await execute(
JSON.stringify(node),
JSON.stringify(programMemoryOverride?.toRaw() || null),
JSON.stringify({ settings: jsAppSettings }),
Expand Down

0 comments on commit 3d67d0f

Please sign in to comment.