-
Notifications
You must be signed in to change notification settings - Fork 1
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
Tail type gives wrong results in specific recursive scenarios #1
Comments
webNeat
added a commit
that referenced
this issue
Mar 21, 2022
Merged
Hey @TimonLukas Thank you for opening this issue and giving the solution, I am not sure why TS behave that way, I will try to dig deeper and understand where is this error coming from later. For now I applied your solution and released a new version. Also thanks for the tip about the Feel free to open other issues if you found other bugs. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey there! Pretty cool library, thanks for sharing this. I could have recently needed this, it's good to know it exists! Though one tip, it would be helpful to add a link to the repository in your
package.json
, so the Github repository is linked on NPM :)Anyways, here's the issue. There are some situations in which the
Tail
type will not work correctly, like this one (see on TS playground):This makes TS throw an error:
This should work, but TS somehow doesn't like this. Don't ask me why, hopefully it will be fixed in the future...
However, there is an alternative that fixes this and still fulfills all your existing tests (see on TS playground):
The text was updated successfully, but these errors were encountered: