diff --git a/frontend/typescript/readme.md b/frontend/typescript/readme.md index 415b8c4..11168a0 100644 --- a/frontend/typescript/readme.md +++ b/frontend/typescript/readme.md @@ -17,7 +17,7 @@ last_updated: 2026-03-29 > **Context:** Handling data of an uncertain type. `any` disables all type-checking, while `unknown` forces safety. ### ❌ Bad Practice ```typescript -function process(data: unknown) { +function process(data: any) { console.log(data.name); // No error, but might crash at runtime } ``` diff --git a/frontend/typescript/types-interfaces.md b/frontend/typescript/types-interfaces.md index d0bdb90..41b976a 100644 --- a/frontend/typescript/types-interfaces.md +++ b/frontend/typescript/types-interfaces.md @@ -17,7 +17,7 @@ last_updated: 2026-04-05 > **Context:** Handling data of an uncertain type. `any` disables all type-checking, while `unknown` forces safety. ### ❌ Bad Practice ```typescript -function process(data: unknown) { +function process(data: any) { console.log(data.name); // No error, but might crash at runtime } ```