Skip to content

Using tuple type arrays causes an error in explorer #55

@VladyslavKochetkov

Description

@VladyslavKochetkov

Tested in version v0.4.2. Creating an array with with a tuple array type causes an error inside of the explorer. Both of the following result in the same error.

type User = {
  id: string;
  name: string;
};

type ResponsePayload = {
  users: [User];
};
type User = {
  id: string;
  name: string;
};

type ResponsePayload = {
  users: [User, ...never[]];
};

Demo

Screen.Recording.2024-06-25.at.11.46.22.AM.mov

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions