Skip to content

Commit

Permalink
fix type errors
Browse files Browse the repository at this point in the history
  • Loading branch information
outercloudstudio committed Jul 11, 2024
1 parent 337eec9 commit c0532f7
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,13 @@ export async function generateCommandSchemas() {
v1CompatMode
)

await command.load(jsRuntime, filePath, 'client').catch((err) => {
console.error(`Failed to load command "${filePath}": ${err}`)
})
await command
.load(<any>jsRuntime, filePath, 'client')
.catch((err) => {
console.error(
`Failed to load command "${filePath}": ${err}`
)
})

schemas.push(...command.getSchema())
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ export class ComponentSchemas {
)

const loadedCorrectly = await component.load(
jsRuntime,
<any>jsRuntime,
filePath,
'client'
)
Expand Down
4 changes: 2 additions & 2 deletions src/components/Compiler/Worker/Service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ export class DashService extends EventDispatcher<void> {
compilerConfig: options.compilerConfig,
console,
mode: options.mode,
fileType: this._fileType,
packType: new PackTypeLibrary(),
fileType: <any>this._fileType,
packType: <any>new PackTypeLibrary(),
verbose: true,
requestJsonData: (path) => dataLoader.readJSON(path),
})
Expand Down

0 comments on commit c0532f7

Please sign in to comment.