fix type for run()

This commit is contained in:
James Smith committed 2024-05-10 12:16:02 +01:00
1 parent 8ffad9afff
commit ce181eeeef
1 file changed
+1 -1
+1 -1
View File
@@ -15,7 +15,7 @@ class ObjectPreview {
this.progressLabel = this.canvas.parentElement?.getElementsByClassName('progress-label')[0] as HTMLSpanElement
}
async run (): void {
async run (): Promise<void> {
// Create offscreen renderer worker
const offscreenCanvas = this.canvas.transferControlToOffscreen()
const OffscreenRenderer = await Comlink.wrap(