Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using tuple type arrays causes an error in explorer #55

Open
VladyslavKochetkov opened this issue Jun 25, 2024 · 0 comments
Open

Using tuple type arrays causes an error in explorer #55

VladyslavKochetkov opened this issue Jun 25, 2024 · 0 comments

Comments

@VladyslavKochetkov
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant