Skip to content

TypeScript

TypeScript adds a static type system to JavaScript. It assists development but does not replace checks on actual incoming data.

Software Development

Find type errors before execution

TypeScript extends JavaScript with a static type system. During development, it can flag incompatible values and missing properties. The errors it detects also depend on settings and the types used.

In a fictional ordering module, quantity: number expects a number. If the checked program code assigns the text "two" instead, type checking can report the conflict. This helps when working on connected functions.

The type annotation does not, however, check arbitrary data arriving later through an API. The application needs actual input validation at runtime. A number may also violate a quantity rule. TypeScript is therefore a development aid for JavaScript code; it proves neither business correctness nor an error-free overall flow.

Sources

Articles on this topic

Software Development with ASES

Custom software, web and mobile apps