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
amount
andtype
are fields directly in the product object, when they are in fact part of thecost
object within it (the Cost type is not defined anywhere else)in window.Twitch.ext.bits.onTransactionComplete, the
product
field of theTransactionObject
is 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.domainID
is there twice). And the "initiator" doesn't clearly state that the enums are represented by a lowercase string, soCURRENT_USER
is actually received ascurrent_user
setUseLoopBack
is a function but documented as a boolean
