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

Refactor - Use TypeScript's variadic tuple types instead of T1,T2,... #757

Closed
wants to merge 1 commit into from

Conversation

mohammadxali
Copy link
Contributor

No description provided.

@mohammadxali mohammadxali self-assigned this Aug 26, 2024
@mohammadxali mohammadxali added the refactor Not a bugfix nor a feature label Aug 26, 2024
Copy link
Contributor

@e1himself e1himself left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!

But it is not exactly the same as before.

I've tried both versions using Typescript Playground and noticed a difference:

  1. Before the change (see the playground):

image

  1. After the change (see the playground):

image

I'm sorry, I don't have time now to find what's wrong exactly. So I won't suggest ways of fixing it.

Maybe you'll want to find the problem? ;)

@mohammadxali
Copy link
Contributor Author

Oh I wasn't aware of the mismatch. Thanks for reviewing 🫶

I believe it's not an easy fix, we don't get much benefit out of this refactor too, so let's close it 🙂

@mohammadxali mohammadxali deleted the refactor/use-ts-variadic-tuple-types branch December 31, 2024 13:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor Not a bugfix nor a feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants