What is the correct return type for mixins? (simple case) #1436
Unanswered
onadeemdev
asked this question in
Q&A
Replies: 2 comments 2 replies
-
Why do you want to define the type? You should rely on type inference. |
Beta Was this translation helpful? Give feedback.
0 replies
-
It's for curiosity, I am using a TS project that requires defining the
function return type. I can disable the line but would also just like to
know to help me improve with TS. Thanks!
…On Wed, Mar 29, 2023 at 2:16 AM Michał Lytek ***@***.***> wrote:
Why do you want to define the type? You should rely on type inference.
—
Reply to this email directly, view it on GitHub
<#1436 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AYKHYEUIR6JHPOTKWB2L6EDW6PHT7ANCNFSM6AAAAAAWLPXBTU>
.
You are receiving this because you authored the thread.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi when we use mixins what is the correct return type for the function? I am trying to properly define it but could use some help, as somewhat new to TS. Does this look correct?
Beta Was this translation helpful? Give feedback.
All reactions