Articles

TypeScript: what it is and how we use it

TypeScript is JavaScript with types. Mistakes are caught while the code is written, not in front of a customer.

A programmer at a laptop
Photo: Crew crew, CC0, Wikimedia Commons

1. How it works

TypeScript adds to JavaScript a description of what data should be where: numbers, text, objects. Before the code runs it is checked that the parts fit together, and many mistakes show up straight away.

2. Why it matters to a business

A project that several people work on, or that will grow for years, is easier to maintain with it. For the customer that means fewer bugs and cheaper changes later.

3. How we use it

On larger projects it helps us keep the code readable and safe to change later.

4. When it fits

It suits projects that will keep growing.

5. What to watch for

Types add certainty but do not replace testing.

6. In practice

We use TypeScript for applications and systems that will grow. Types work as a running check: if text is sent where a number is expected, the editor shows it before anything runs. On a simple website we do not need it.

7. Alternatives

The alternative is plain JavaScript, which is quicker to start and enough for small projects. Other typed languages exist, but TypeScript has the widest support. The choice depends on the size and expected lifetime of the project.

8. Common questions

Is TypeScript slower than JavaScript?

No. It is converted to JavaScript before deployment, so for the visitor it runs just as fast.

Does TypeScript make a project more expensive?

A little more work at the start, later fewer fixes and safer changes. On longer projects it usually pays off.

Can any developer handle it?

Most developers who know JavaScript pick it up quickly. Long-term maintenance is not tied to one person.

If you need help with this, take a look at our Software development.

Related articles

Send us your web address.

In two days you get one page back.

Free, no obligation. We do not need access to any of your accounts.

How we handle your data

Matyáš Musela · 733 230 308 · Filip Berčík · 774 915 200 · aetheron@aetheron.cz · Prague

  1. What people in your trade actually search for

  2. How much of it reaches you today

  3. What we would do first, and why