TypeScriptFunctions & Function Types

37 items

FlashcardBeginner

Contextual Typing of Parameters

TypeScript infers parameter types of inline functions from context.

Question

Why don't inline callback parameters always need type annotations?

Click to reveal answer