mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-16 23:10:29 +00:00
Updated Image.fromURL to make the callback strongly typed
This commit is contained in:
Vendored
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user