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

Unexpected unwrapping of tuple type #37

Open
jasonkuhrt opened this issue Sep 20, 2024 · 4 comments
Open

Unexpected unwrapping of tuple type #37

jasonkuhrt opened this issue Sep 20, 2024 · 4 comments

Comments

@jasonkuhrt
Copy link

jasonkuhrt commented Sep 20, 2024

Thanks for your work on this, exciting to be trying it out. I don't think this is expected, right? It's hardly usable so assuming this is bug/oversight.

CleanShot 2024-09-19 at 20 34 42@2x

CleanShot 2024-09-19 at 20 34 48@2x

@mylesmmurphy
Copy link
Owner

mylesmmurphy commented Sep 20, 2024

Hey @jasonkuhrt! Thanks for bringing this to my attention. Tuples are absolutely a missed case, but also should hopefully be an easy fix. I will make sure this gets included in the next release, thanks 😄

Just to be sure, would you expect the preview to be the following?

const abcEnum: {
    0: "enum";
    1: true;
}

Is that correct?

@jasonkuhrt
Copy link
Author

Awesome. I would prefer [x,x] format but not sure what the constraints are here.

@mylesmmurphy
Copy link
Owner

Hey @jasonkuhrt thanks for your patience! I've got this added in #53 and hope to have this released as part of v0.1.6 asap. I landed on your syntax 😄
image

image

@jasonkuhrt
Copy link
Author

Awesome!

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

2 participants