Skip to content

Cleanup Iterator types #2791

@nickofthyme

Description

@nickofthyme

As of Typescript v5.6 the built-in iterators like Set.prototype.values() is much more strict and the types now return T | undefined for values.next().value, see release post.

This applies to only built-in types until we upgrade to Typescript, at which point it might have more failures.

For now in #2790 we just use values.next().value! in places where the logic is strictly expecting a non-null value.

We should clean this up.

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