Skip to content

Commit d3936a0

Browse files
committed
Add section on types
1 parent d617e47 commit d3936a0

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
@@ -18,6 +18,7 @@ The latest released version is [`2.0.0`][release].
1818
* [Intro](#intro)
1919
* [Syntax tree](#syntax-tree)
2020
* [Where this specification fits](#where-this-specification-fits)
21+
* [Types](#types)
2122
* [Nodes](#nodes)
2223
* [`Node`](#node)
2324
* [`Parent`](#parent)
@@ -81,6 +82,15 @@ unist relates to the [vfile][] project in that it accepts unist nodes for its
8182
message store, and that vfile can be a source *[file][term-file]* of a syntax
8283
tree.
8384

85+
## Types
86+
87+
If you are using TypeScript, you can use the unist types by installing them
88+
with npm:
89+
90+
```sh
91+
npm install @types/unist
92+
```
93+
8494
## Nodes
8595

8696
Syntactic units in unist syntax trees are called nodes, and implement the

0 commit comments

Comments
 (0)