DEV Community

[Comment from a deleted post]
Collapse
 
imjoehaines profile image
Joe Haines

I'm not sure what you mean here, sorry.

I agree that most functions are going to work on complex types like objects or records, but they can be inferred just as well as strings or numbers.

That example was only intended to show that you need to add types to functions where the parameters have already been typed, the types themselves don't really matter.