From a633cdc0e01513701f6f57ddf91f2206a6543b68 Mon Sep 17 00:00:00 2001 From: Stefan Zerkalica Date: Wed, 25 Oct 2023 01:56:23 +0300 Subject: [PATCH] $mol_image types to new tree2 --- image/image.view.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/image/image.view.ts b/image/image.view.ts index 76820b7f98e..53720f36bcb 100644 --- a/image/image.view.ts +++ b/image/image.view.ts @@ -2,7 +2,7 @@ namespace $.$$ { export class $mol_image extends $.$mol_image { @ $mol_mem - natural_width( next?: null ) { + natural_width( next?: null | number ) { const dom = this.dom_node() as HTMLImageElement if( dom.naturalWidth ) return dom.naturalWidth @@ -13,7 +13,7 @@ namespace $.$$ { } @ $mol_mem - natural_height( next?: null ) { + natural_height( next?: null | number ) { const dom = this.dom_node() as HTMLImageElement if( dom.naturalHeight ) return dom.naturalHeight