Unclear extensions documentation
A few of the elements on the extensions documentation (https://dev.twitch.tv/docs/extensions/reference/) are very confusing, especially in the Bits section. For example:
in getProducts, it looks like
amountandtypeare fields directly in the product object, when they are in fact part of thecostobject within it (the Cost type is not defined anywhere else)in window.Twitch.ext.bits.onTransactionComplete, the
productfield of theTransactionObjectis said to be a string, but its description says "If set to true, will contain “inDevelopment”. Otherwise it return blank". How can it be set to true if it is a string? Also, from a screenshot I found online, it looks like it is actually a Product object like the ones returned bygetProducts, and not a string at allalso in
onTransactionComplete, a lot of the attributes are duplicated (e.g.domainIDis there twice). And the "initiator" doesn't clearly state that the enums are represented by a lowercase string, soCURRENT_USERis actually received ascurrent_usersetUseLoopBackis a function but documented as a boolean