ts-type-explorer icon indicating copy to clipboard operation
ts-type-explorer copied to clipboard

Using tuple type arrays causes an error in explorer

Open VladyslavKochetkov opened this issue 1 year ago • 1 comments

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

https://github.com/mxsdev/ts-type-explorer/assets/33583906/74f55953-7d1a-4fde-bbbb-dc305cfae5fc

VladyslavKochetkov avatar Jun 25 '24 15:06 VladyslavKochetkov

This is the same issue as #58

CodeSmith32 avatar Jul 24 '25 19:07 CodeSmith32