Skip to content

Interop Gen: Support Mapped Types #455

@nikeokoronkwo

Description

@nikeokoronkwo

This issue is for adding support for mapped types in TS.

Depending on the key representation of this given type, we could either have it as:

  • A JSRecord (not to be confused with the current implementation of a JS record in package:js_interop as this one will need generics on both key and value)
  • An anonymous object representation for cases of keyof <type>

This also considers modifications on readonly, nullability, typing (using as casts), and others.

If it is possible to get some resolution of the type by the type checker, it would be helpful to do so. Keys that resolve to never should be removed.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions