types icon indicating copy to clipboard operation
types copied to clipboard

Use Array<T> | Iterable<T> ?

Open sdegutis opened this issue 11 months ago • 2 comments

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.

sdegutis avatar Mar 16 '25 22:03 sdegutis