Skip to content

Use Array<T> | Iterable<T> ? #169

@sdegutis

Description

@sdegutis

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, so I can use this tutorial without issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions