25 items
Optional Parameter Ordering
Function Type Expression Syntax
Rest Parameters Type Annotation
Contextual Typing of Callback Parameters
Inferred Return Type From Function Body
Function Assigned to a Typed Variable
Passing Wrong Argument Type
Too Many or Too Few Arguments
Typing Arrow Functions
Named Function Declaration Types
Anonymous Function Contextual Typing
Typing Callback Parameters
void Return Type
Rest Parameters Typing
Function Expression Type Annotations
Return Type Inference
Arrow Function Type Annotations
Function Declaration Syntax
Typing a Variable as a Function
Contextual Typing of Parameters
Arrow Function Syntax
Rest Parameters
Function Expression Syntax
Callback Function Types
A two-parameter function is called with an extra argument.
function add(a: number, b: number): number { return a + b; } const result = add(1, 2, 3);
What is the bug in this call?