Skip to content

Commit 59aeed2

Browse files
committed
Add types section
Closes GH-3.
1 parent ddcc0d4 commit 59aeed2

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
@@ -17,6 +17,7 @@ The latest released version is [`1.0.0`][latest].
1717
* [Introduction](#introduction)
1818
* [Where this specification fits](#where-this-specification-fits)
1919
* [Scope](#scope)
20+
* [Types](#types)
2021
* [Nodes](#nodes)
2122
* [`Parent`](#parent)
2223
* [`Literal`](#literal)
@@ -102,6 +103,15 @@ Internal document type declarations have no representation in xast:
102103
<greeting>Hello, world!</greeting>
103104
```
104105

106+
## Types
107+
108+
If you are using TypeScript, you can use the unist types by installing them
109+
with npm:
110+
111+
```sh
112+
npm install @types/xast
113+
```
114+
105115
## Nodes
106116

107117
### `Parent`

0 commit comments

Comments
 (0)