Type Annotation
Noun · Development
Definitions
An explicit label attached to a variable, parameter, or return value that declares its expected type — such as `let count: number` in TypeScript or `def greet(name: str) -> str` in Python. Annotations inform the type checker and serve as inline documentation, but may be optional when the compiler can infer the type.
In plain English: A label you write next to a variable or function to explicitly state what kind of data it holds or returns.
Example: "Add type annotations to the function signatures at the module boundary — internal helpers can rely on inference."