Typescript

Lawson Hung
2 min readJan 16, 2020

--

At yet another networking event, we talked a bit about Typescript. It’s also something that I’ve been asked about in an interview, as some companies do use it.

So what is it? Typescript is a Javascript library that allows you to define what a function will return.

As you can see above, it can be used in tandem with React, another modern, powerful and cutting edge technology developed by Facebook for building websites and apps.

With Typescript, you’re able to define what kind of data will be passed in as parameters, making your code much more readable for other developers to collaborate with and also decreases the room for errors.

Typescript catches errors and tells you what went wrong. This makes it easier to debug.

Since you can use Typescript in tandem with other libraries, it makes it very useful. Moreover, you can choose which parts of Typescript you want to keep and which you want to get rid of. This make it Typescript relatively easy to use and pick up. You’re also able to create custom datatypes, outside of the regular Strings, Integers, etc. Thus, you can create a User datatype with the attributes first name, last name, address, etc.

Personally, I’ve not used Typescript myself. I’ve only heard of it but haven’t used it in practice. However, it is a library to keep track of and is definitely on my list of things to learn.

That’s all folks! Happy coding!

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Lawson Hung
Lawson Hung

No responses yet

Write a response