Skip to content

Commit d7fb640

Browse files
fix some errors
1 parent 46e4f55 commit d7fb640

3 files changed

Lines changed: 4 additions & 0 deletions

File tree

src/libs/data/bedrock/DashData.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ export class DashData implements Disposable {
9292

9393
const jsRuntime = new Runtime(fileSystem)
9494

95+
// @ts-ignore Strange imported nonsense
9596
const loadedResult = await command.load(jsRuntime, path, 'client')
9697
// NOTE: Dash compiler doesn't return a truthy value when the command loads so doing this a temporary fix untill I update the dash compiler again
9798
const loadedCorrectly = loadedResult !== null && loadedResult !== false
@@ -126,6 +127,7 @@ export class DashData implements Disposable {
126127

127128
const jsRuntime = new Runtime(fileSystem)
128129

130+
// @ts-ignore strange imported nonsense
129131
const loadedCorrectly = await component.load(jsRuntime, path, 'client')
130132

131133
if (!loadedCorrectly || !component.name || !component.getSchema()) {

src/libs/fileSystem/LocalFileSystem.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ export class LocalFileSystem extends BaseFileSystem {
2525
// @ts-ignore TS being weird about errors
2626
if (data instanceof Uint8Array) return data.buffer
2727

28+
// @ts-ignore array buffer yes....
2829
return this.textEncoder.encode(data).buffer
2930
}
3031

src/libs/fileSystem/MemoryFileSystem.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ export class MemoryFileSystem extends BaseFileSystem {
2424

2525
if (data instanceof ArrayBuffer) return data
2626

27+
// @ts-ignore array buffer yes....
2728
return this.textEncoder.encode(data as string).buffer
2829
}
2930

0 commit comments

Comments
 (0)