From 85a2bcb512af99c87ffdb90c4fd75330f6c67518 Mon Sep 17 00:00:00 2001 From: Bryan Krol Date: Fri, 22 Feb 2019 14:16:16 -0500 Subject: [PATCH] Updated Image.fromURL to make the callback strongly typed --- types/fabric/fabric-impl.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/fabric/fabric-impl.d.ts b/types/fabric/fabric-impl.d.ts index 2babdfe7e2..22f9d6d514 100644 --- a/types/fabric/fabric-impl.d.ts +++ b/types/fabric/fabric-impl.d.ts @@ -2285,7 +2285,7 @@ export class Image { * @param [callback] Callback to invoke when image is created (newly created image is passed as a first argument) * @param [imgOptions] Options object */ - static fromURL(url: string, callback?: Function, imgOptions?: IImageOptions): Image; + static fromURL(url: string, callback?: (image: Image) => void, imgOptions?: IImageOptions): Image; /** * Returns Image instance from an SVG element * @param element Element to parse