Question
Why is defining explicit types at public API boundaries often useful despite type inference?
Select an option. Your answer will be checked instantly.
Correct Answer: D. It documents intent and prevents accidental interface changes
Explanation:
A clear signature helps users and tools understand an API.
It also keeps internal implementation changes from altering the exposed type unexpectedly.
Leave a Reply