heh, not work without args type bit.ly/arrowOverload
yeah that's true, but you can get it all working by simply casting the return value type to any like this
any
Sad that it doesn't support union types 😥. Is using @ts-expect-error as a workaround in your opinion a good solution?
@ts-expect-error
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
heh, not work without args type bit.ly/arrowOverload
yeah that's true, but you can get it all working by simply casting the return value type to
any
like this
Sad that it doesn't support union types 😥. Is using
@ts-expect-error
as a workaround in your opinion a good solution?