From 7cc4d1e45983640ce6d7ca367527cb7597c876f6 Mon Sep 17 00:00:00 2001 From: codert Date: Tue, 23 Apr 2019 05:56:08 +0800 Subject: [PATCH] fix: createClass should return value (#34904) --- types/fabric/fabric-impl.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/fabric/fabric-impl.d.ts b/types/fabric/fabric-impl.d.ts index 4af44275e9..c74b50caa4 100644 --- a/types/fabric/fabric-impl.d.ts +++ b/types/fabric/fabric-impl.d.ts @@ -5281,13 +5281,13 @@ interface IUtilClass { * @param [properties] Properties shared by all instances of this class * (be careful modifying objects defined here as this would affect all instances) */ - createClass(parent: Function, properties?: any): void; + createClass(parent: Function, properties?: any): any; /** * Helper for creation of "classes". * @param [properties] Properties shared by all instances of this class * (be careful modifying objects defined here as this would affect all instances) */ - createClass(properties?: any): void; + createClass(properties?: any): any; } interface IUtilObject {