Giter Site home page Giter Site logo

typescript-exercises's Introduction

TypeScript exercises

The goal: Let everyone play with many different TypeScript features and get an overview of TypeScript capabilities and principles.

Things to cover

  1. Basic typing.
  2. Refining types.
  3. Union types.
  4. Merged types.
  5. Generics.
  6. Type declarations.
  7. Module augmentation.
  8. Advanced type mapping.

Rules and principles

  1. Avoid using any type at all costs.

  2. Difficulty quickly grows one exercise after another.

  3. Don't open next exercises before finishing previous ones. Next exercises may contain spoilers and will prevent you from enjoying the delightful process of TypeScript debugging.

  4. Feel free to send a pull-request with your solutions if you need some additional feedback.

  5. Provide feedback to the creator of these exercises.

  6. Enjoy.

Installation and usage

  1. Make sure you have node.js (and yarn if you prefer it over npm) installed on your machine.

  2. Start by opening exercises/exercise-00/index.ts.

  3. Once done with the exercise, proceed to the next one.

typescript-exercises's People

Contributors

cherryblossom000 avatar everdimension avatar marcelgerber avatar mdevils avatar rzvjerkovic avatar zacharyl2 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.