mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 06:47:03 +00:00
Fixed typos in params for Image.fromUrl()
Documentation and implementation didn't match up and I was unable to pass {crossOrigin: 'Anonymous' } as the 3rd argument.
This commit is contained in:
Vendored
+1
-1
@@ -1867,7 +1867,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?: (image: Image) => void, objObjects?: IObjectOptions): Image;
|
||||
static fromURL(url: string, callback?: (image: Image) => void, imgOptions?: IImageOptions): Image;
|
||||
/**
|
||||
* Creates an instance of fabric.Image from its object representation
|
||||
* @param object Object to create an instance from
|
||||
|
||||
Reference in New Issue
Block a user