diff --git a/typescript/core/widget.ts b/typescript/core/widget.ts index 457b092f91..cc06759476 100644 --- a/typescript/core/widget.ts +++ b/typescript/core/widget.ts @@ -42,8 +42,8 @@ export interface _Widget extends _OB { element: { width(): number; height(): number; - width(width: number): _Widget['element']; - height(height: number): _Widget['element']; + width(width: number | string): _Widget['element']; + height(height: number | string): _Widget['element']; [key: string]: any; }; @@ -444,8 +444,8 @@ export declare class Widget extends OB { element: { width(): number; height(): number; - width(width: number): Widget['element']; - height(height: number): Widget['element']; + width(width: number | string): Widget['element']; + height(height: number | string): Widget['element']; [key: string]: any; };