[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository has been archived by the owner on Nov 16, 2019. It is now read-only.

bbtsws/ts

Repository files navigation

How to Add Two Numbers in TypeScript

NodeConf.eu 2019 TypeScript Workshop

Introduction

The TypeScript type system is very powerful and dynamic. It allows you to go from very simple types to very advanced types with a very low adoption curve.

Target Audience

JavaScript developers with TypeScript skill levels ranging from beginner to competent.

Pre-requisites

Playground: https://www.typescriptlang.org/play/

Node.js, TSC, Visual Studio Code

Summary

Goal

The purpose of this workshop is to gain unique insight into TypeScript and how it works.

This is not a tutorial on TypeScript.

What you'll learn here is not practical in of itself. The goal for us today is to learn more about the TypeScript type system and understand what it is capable of.

In this workshop, you will:

  1. Set basic variables with simple types.
  2. Write type definitions via interfaces.
  3. Push the limits of TypeScript by recursively defining an infinite set of type.

The first two sections build up to the activities in section three, and can be skipped by experienced users of TypeScript. Most users will never perform tasks like those in section three, so this is a purely an exercise in exploring TypeScript.

Sections

Get started with the basics of TypeScript Types.

Start defining and using your own Types.

Now let's push the boundaries by creating a new universe of positive numbers and define the addition operation in this new universe. Then repeat the exercise but using TypeScript's type system.

Presenters

Special Thanks Maxwell Heiber for inspiring this workshop with his awesome presentation of these same materials!

Releases

No releases published

Packages

No packages published