Concept Flow - Function overloads
Call function with args
Check args types/count
Match to correct overload signature?
No→Error: No matching overload
Yes
Run implementation with args
Return result
End
When a function is called, TypeScript checks the arguments against declared overloads, picks the matching one, then runs the single implementation.