Add types section · syntax-tree/mdast@eace3f0 (original) (raw)

Original file line number Diff line number Diff line change
@@ -18,6 +18,7 @@ The latest released version is [`4.0.0`][latest].
18 18
19 19 * [Introduction](#introduction)
20 20 * [Where this specification fits](#where-this-specification-fits)
21 +* [Types](#types)
21 22 * [Nodes](#nodes)
22 23 * [`Parent`](#parent)
23 24 * [`Literal`](#literal)
@@ -90,6 +91,15 @@ languages.
90 91 mdast relates to the [unified][] and [remark][] projects in that mdast syntax
91 92 trees are used throughout their ecosystems.
92 93
94 +## Types
95 +
96 +If you are using TypeScript, you can use the unist types by installing them
97 +with npm:
98 +
99 +```sh
100 +npm install @types/mdast
101 +```
102 +
93 103 ## Nodes
94 104
95 105 ### `Parent`