Ir al contenido

Missing Type Annotation (ARCH3193)

Esta página aún no está disponible en tu idioma.

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.