Replies: 1 comment
-
Please always try to share a repro case in a runnable form - either by providing a git repository to clone or a codesandbox. OSS maintainers usually can't afford the time to set up the repro, even if exact steps are given. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Say I have the following:
For completeness I want to fully type the
foo
function (actually in my use case thefoo
equivalent is an export from a separate module so I really, really should type it fully). I've tried the following:And a myriad of different other attempts that seem less promising. However, every attempt I make yields a typescript error pretty dang similar to the following:
Note that when I leave
foo
to be inferred, there's no error. Can anyone help me figure out how to properly typefoo
here?Beta Was this translation helpful? Give feedback.
All reactions