Skip to content

Commit 40a075c

Browse files
committed
Add types section
1 parent df73997 commit 40a075c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

readme.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ The latest released version is [`2.4.0`][latest].
1919
* [Introduction](#introduction)
2020
* [Where this specification fits](#where-this-specification-fits)
2121
* [Virtual DOM](#virtual-dom)
22+
* [Types](#types)
2223
* [Nodes](#nodes)
2324
* [`Parent`](#parent)
2425
* [`Literal`](#literal)
@@ -69,6 +70,15 @@ The reason for introducing a new “virtual” DOM is primarily:
6970
(think comments and document types)
7071
* Neither the DOM nor virtual DOMs focus on positional information
7172

73+
## Types
74+
75+
If you are using TypeScript, you can use the unist types by installing them
76+
with npm:
77+
78+
```sh
79+
npm install @types/hast
80+
```
81+
7282
## Nodes
7383

7484
### `Parent`

0 commit comments

Comments
 (0)