TypeScript

Types disappear at runtime

Në shqip: Tipet zhduken gjatë ekzekutimit

ShpjegimiSQ

Kur TypeScript-i kthehet në JavaScript, të gjitha tipet hiqen — shfletuesi s'i sheh kurrë. Kjo do të thotë që TypeScript-i të mbron nga gabimet në kodin tënd, por jo nga të dhënat e gabuara që vijnë nga një API ose përdoruesi.

EnglishEN

When TypeScript is turned into JavaScript, all the types are removed — the browser never sees them. That means TypeScript protects you from mistakes in your code, but not from bad data coming from an API or the user.

Si ta mendosh

Si skela e ndërtesës: të ndihmon ta ndërtosh drejt, por hiqet para se të hyjnë banorët.

Lexoje në anglisht

Like scaffolding: it helps you build straight, but it's taken down before people move in.

Terma të lidhur