Skip to content

Commit 02c82b6

Browse files
committed
[the data] Improve content
1 parent 008331d commit 02c82b6

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

01-the-data/the-data.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
# The data of type-level programs
22

3-
Like with every programming language, in Type Level Typescript we will write code that **transform some data**. The only thing that's different from most other languages is that the data our code will transform are **types**! We will write programs that take some types as input and output some other types.
3+
Like with every programming language, in Type Level TypeScript (TL-TS) we will write code that **transform some data**. The only thing that's different from other programming languages is that the data our code will transform are **types**! We will write programs which take some types as input and output some other types.
44

5-
To master this language we will need to start by understanding the different sorts of data we have at our disposal.
5+
There is no way to master a language without a good understanding the different sorts of data it provides, so let's see what we have at our disposal in TL-TS.
66

77
## The three families of types
88

9-
There are 3 main "families" of data in Type-Level TypeScript (TLTS): primitive types, literal types, and data structure types. Let's explore each of them.
9+
There are 3 main "families" of data in Type-Level TypeScript: primitive types, literal types, and data structure types. Let's explore each of them.
1010

1111
### Primitive types
1212

13-
You are certainly already familiar with primitive types. We use them a lot to annotate our variables and functions in our day to day TypeScript code. Here is the list of primitive types:
13+
You are certainly already familiar with primitive types. We use them all the time to annotate our variables and functions in our day to day TypeScript code. Here is the list of primitive types:
1414

1515
```ts
1616
type Primitives =
@@ -23,7 +23,7 @@ type Primitives =
2323
| null;
2424
```
2525

26-
Every JavaScript value at the exception of objects and functions belong to one of these types. Most primitive types are the home of an infinite number of inhabitant values, like `number` or `string`, but two of them only contain a single lonely inhabitant: the `null` type and the `undefined` type. This specificity makes `null` and `undefined` also part of the second family of data we have at our disposal: **literal types**.
26+
Every JavaScript value at the exception of objects and functions belong to one of these types. Most primitive types are the home of an infinite number of inhabitant values, like `number` or `string`, but two of them only contain a single lonely inhabitant: the `null` type and the `undefined` type. This specificity makes `null` and `undefined` also part of the 2nd family of data we have at our disposal: **literal types**.
2727

2828
### Literal types
2929

0 commit comments

Comments
 (0)