Improved return type of getTextContent(): 

Created TextContent interface