Skip to content

Commit

Permalink
docs: add array type
Browse files Browse the repository at this point in the history
  • Loading branch information
mistlog committed Feb 15, 2021
1 parent 9702d41 commit a6e678a
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions README.md
Expand Up @@ -88,20 +88,21 @@ This project is still primitive, PR is welcomed, feel free to open issues and jo
### Basic type
```ts
type a = never;
type b = number;
type c = string;
type a = never
type b = number
type c = string
```
```ts
type value = 1;
type str = "abc";
type bool = true;
type tuple = [1, 2, 3];
type obj = { a: 1; b: "abc"; c: [1, 2] };
type template = `value is: ${value}`;
type keys = keyof { a: 1; b: 2 };
type valueDeep = obj["c"][1];
type value = 1
type str = "abc"
type bool = true
type tuple = [1, 2, 3]
type obj = { a: 1; b: "abc"; c: [1, 2] }
type template = `value is: ${value}`
type keys = keyof { a: 1; b: 2 }
type valueDeep = obj["c"][1]
type array = string[][]
```
### Complex type
Expand Down

0 comments on commit a6e678a

Please sign in to comment.