Aller au contenu

Missing Type Annotation (ARCH3193)

Ce contenu n’est pas encore disponible dans votre langue.

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.

export function parseAmount(raw) {
return Number(raw) / 100;
}
export function parseAmount(raw: string): number {
return Number(raw) / 100;
}

Add explicit parameter and return types to public functions.