When a YahooFantasyClient is created with the rawXml: true option set, the response is returned as a string. However, the type handling does not currently reflect this possibility, which can lead to confusion for developers expecting a parsed object. The issue is to update the type definitions and handling in the query builder to correctly indicate that when rawXml: true is set, the response will be a string containing the raw XML data.
When a YahooFantasyClient is created with the
rawXml: trueoption set, the response is returned as a string. However, the type handling does not currently reflect this possibility, which can lead to confusion for developers expecting a parsed object. The issue is to update the type definitions and handling in the query builder to correctly indicate that whenrawXml: trueis set, the response will be a string containing the raw XML data.