Fabric - Cross origin is a string everywhere. Type as such so don't have to downcast as any.

This commit is contained in:
Bradley Hill
2018-12-06 09:46:39 -06:00
parent a7e0763b93
commit e5ca27ce79

View File

@@ -4529,7 +4529,7 @@ interface IUtilMisc {
* @param [context] Context to invoke callback in
* @param [crossOrigin] crossOrigin value to set image element to
*/
loadImage(url: string, callback: (image: HTMLImageElement) => void, context?: any, crossOrigin?: boolean): void;
loadImage(url: string, callback: (image: HTMLImageElement) => void, context?: any, crossOrigin?: string): void;
/**
* Creates corresponding fabric instances from their object representations