Skip to content

Commit

Permalink
fix: TS type for filenames
Browse files Browse the repository at this point in the history
  • Loading branch information
nadr0 committed Feb 24, 2025
1 parent 34e3940 commit 45c526e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/lang/wasm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ import { MetaSettings } from 'wasm-lib/kcl/bindings/MetaSettings'
import { UnitAngle, UnitLength } from 'wasm-lib/kcl/bindings/ModelingCmd'
import { UnitLen } from 'wasm-lib/kcl/bindings/UnitLen'
import { UnitAngle as UnitAng } from 'wasm-lib/kcl/bindings/UnitAngle'
import { ModulePath } from 'wasm-lib/kcl/bindings/ModulePath'

export type { Artifact } from 'wasm-lib/kcl/bindings/Artifact'
export type { ArtifactCommand } from 'wasm-lib/kcl/bindings/Artifact'
Expand Down Expand Up @@ -296,7 +297,7 @@ export interface ExecState {
artifactCommands: ArtifactCommand[]
artifactGraph: ArtifactGraph
errors: CompilationError[]
filenames: String[]
filenames: { [x: number]: ModulePath | undefined }
}

/**
Expand Down Expand Up @@ -515,8 +516,9 @@ export const makeDefaultPlanes = async (
engineCommandManager: EngineCommandManager
): Promise<DefaultPlanes> => {
try {
const planes: DefaultPlanes =
await make_default_planes(engineCommandManager)
const planes: DefaultPlanes = await make_default_planes(
engineCommandManager
)
return planes
} catch (e) {
// TODO: do something real with the error.
Expand Down

0 comments on commit 45c526e

Please sign in to comment.