Add missing parameter type
authorjoshuaruesweg <ruesweg@woltlab.com>
Sat, 31 Oct 2020 20:20:14 +0000 (21:20 +0100)
committerjoshuaruesweg <ruesweg@woltlab.com>
Sat, 31 Oct 2020 20:20:14 +0000 (21:20 +0100)
wcfsetup/install/files/ts/WoltLabSuite/Core/Image/Resizer.ts

index 121b24fcdd873209cb1334ffaaf841d1fdccc2b6..3c58f152949815e754800b70260c40b25c19efeb 100644 (file)
@@ -143,7 +143,7 @@ class ImageResizer {
     maxHeight: number = this.maxHeight,
     quality: number = this.quality,
     force = false,
-    cancelPromise
+    cancelPromise?: Promise<unknown>
   ): Promise<HTMLCanvasElement | undefined> {
     const canvas = document.createElement("canvas");