---
title: "Discussion on \"Mengapa unknown Adalah Pilihan yang Lebih Aman Daripada any di Blok catch TypeScript\" | Hashnode"
description: "Discussion on \"Mengapa unknown Adalah Pilihan yang Lebih Aman Daripada any di Blok catch TypeScript\". Saat menangani error di TypeScript, kita sering kali menulis blok try...catch secara otomatis. Secara default, variabel error dalam blok catch memiliki tipe any, yang tampaknya memudahkan kita. Namun, kemudahan ini datang dengan risiko tersembunyi. M..."
url: "https://hashnode.com/posts/mengapa-unknown-adalah-pilihan-yang-lebih-aman-daripada-any-di-blok-catch-typescript/68e4c344bd1474e25d45888d"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Mengapa unknown Adalah Pilihan yang Lebih Aman Daripada any di Blok catch TypeScript](https://tech.finlup.id/mengapa-unknown-adalah-pilihan-yang-lebih-aman-daripada-any-di-blok-catch-typescript?utm_source=hashnode&utm_medium=feed)

Saat menangani error di TypeScript, kita sering kali menulis blok try...catch secara otomatis. Secara default, variabel error dalam blok catch memiliki tipe any, yang tampaknya memudahkan kita. Namun, kemudahan ini datang dengan risiko tersembunyi. M...

Oct 7, 2025 · 3 min read · tech.finlup.id  
Read the article

-   [#typescript](https://hashnode.com/tag/typescript)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#try-catch](https://hashnode.com/tag/try-catch)
-   [#error-handling](https://hashnode.com/tag/error-handling)
-   [#error](https://hashnode.com/tag/error)

## Written by

[Ariska Hidayat](https://hashnode.com/@ariska138)

@ariska138 · Sragen, Indonesia

  
[View profile](https://hashnode.com/@ariska138)

We Make Technology Easy and Fun

I am an enthusiastic researcher and developer with a passion for using technology to innovate in business and education.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
