ts-type-explorer
ts-type-explorer copied to clipboard
Using tuple type arrays causes an error in explorer
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
This is the same issue as #58