export type Sizes = { width : number ; height : number ; } ; method memberof argument { Element } element returns { Object } export default function getOuterSizes ( element ) { let rect = element . getBoundingClientRect ( ) ; const result = { width : element . offsetWidth || element . scrollWidth || rect . width || 0 , height : element . offsetHeight || element . scrollHeight || rect . height || 0 , } ; return result ; }