Oxycon Blog
  • Home
  • About
  • Contact
  • Twitter
  • Instagram
  • OpenSource
  • Github
  • RSS
  • Home
  • About
  • Contact
  • Twitter
  • Instagram
  • OpenSource
  • Github
  • RSS
Why we should use type unknown over any in Typescript?

Why we should use type unknown over any in Typescript?

TypeScript's unknown vs any: both bypass strict typing, but unknown forces you to narrow a value before using it, keeping the safety any throws away. Examples show how each behaves and why unknown is the safer default for untyped data.

Apr 22, 2024

typescript

Latest

Page 1 of 1
Oxycon Blog

Thought stories and ideas to Oxygenate You, Your product and The World in practice.

Explore

  • Home
  • About
  • Contact
  • Twitter
  • Instagram
  • OpenSource
  • Github
  • RSS

© 2026 Oxycon Blog. All rights reserved.

We use cookies to improve our services.