Missing Type Annotation (ARCH3193)
Key typescript.quality.missing-type-annotation · Severity info · Category quality
Functions on the public API surface that lack explicit parameter and return types let inferred types drift silently and leave the contract ambiguous. Public boundaries should be explicitly typed.
Incorrect
Section titled “Incorrect”export function parseAmount(raw) { return Number(raw) / 100;}Correct
Section titled “Correct”export function parseAmount(raw: string): number { return Number(raw) / 100;}Add explicit parameter and return types to public functions.