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