Skip to content

& DepSafe API inconvenience due to tsc weakness #829

@jberdine

Description

@jberdine

TypeScript is not able to understand that T & DepSafe is an "object type", and so using an element of an array obtained from Values.toArray in contexts such as a spread expression are disallowed. E.g. {...(vals.toArray()[0], k: v} is a type error and needs a cast. Is there anything to do to help tsc?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions