Function parameter is missing a type annotation when strict mode is enabled.
When `noImplicitAny: true` is set in `tsconfig.json`, TypeScript requires explicit type annotations for function parameters whenever it cannot infer them automatically.
Writing plain JavaScript function signatures without adding type annotations.
1// Error TS7006: Parameter 'items' implicitly has an 'any' type2function calculateTotal(items) {3 return items.reduce((acc, item) => acc + item.price, 0);4}1interface Item {2 price: number;3}4 5function calculateTotal(items: Item[]): number {6 return items.reduce((acc, item) => acc + item.price, 0);7}Simulate standard system builds to trigger compiler trace records and track memory crashes locally.
TypeScript cannot safely infer what type `items` should be, so it attempts to assign `any`. In strict mode, implicit `any` is prohibited to maintain type safety.