garageScript / curriculum

GarageScript Curriculum
21 stars 164 forks source link

Typescript #372

Open songz opened 2 years ago

songz commented 2 years ago

Goal

This thread is to document what is needed for typescript in our curriculum, so we could make sure our typescript challenge covers what we used in the codebase.

Typescript

Ulisseus commented 2 years ago

Some things which made me confused when I first started using typescript:

Otherwise adding types to pokemon react challenge should be enough IMO.

anthonykhoa commented 2 years ago

Typescript specific operators operators should be defined somewhere. I remember looking at some new code in the codebase a few months ago, and had to ask the engineering channel what !. meant.

Here is the code sample I was initially confused about: https://github.com/garageScript/c0d3-app/blob/master/helpers/updateCache.ts#L43