Reason for everything could be undefined? #4034
-
Hi. I have been working with different JS sdk's for a while now, and I write all my programs in TypeScript, and therefore I have one question about the the types. Is there a obvious reason why every property in every sdk could be undefined and not just string or a type? It's pretty annoying to make my own types every time for the sdk, or typecheck every property. So are there a good reason, or is it just the way it got built? Best regards Fredrik Johansen. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Hi @fredrikj31 , I'm not entirely sure what you mean by you "making your own types" Can you share an example so I could better understand the problem at hand? Thanks, |
Beta Was this translation helpful? Give feedback.
-
Please refer to @trivikr 's comment here laying out the design decision. Thanks, |
Beta Was this translation helpful? Give feedback.
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
@fredrikj31
Please refer to @trivikr 's comment here laying out the design decision.
Thanks,
Ran