declare const element ; element . getElementById ( 'id' ) as Element ; element . getElementsByClassName ( 'class' ) as Element [ ] ; element . getElementsByTagName ( 'tag' ) as Element [ ] ; element . getElementsByTypeName ( 'type' ) as Element [ ] ;