types
types copied to clipboard
Use Array<T> | Iterable<T> ?
In the readme:
Array changed to Iterable for WebIDL sequences in argument positions (but not in return positions).
I think this is to allow you to pass arrays or iterables (such as returned from Array.entries() or Map.values() etc), right? But now I can't index it via renderdesc.colorAttachments[0] because now it thinks it's not an array.
Seems better to use something like Iterable<T> | Array<T> or at least ArrayLike<T>, so I can use this tutorial without issue.