Skip to content

Commit

Permalink
Add section on types
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Feb 4, 2023
1 parent d617e47 commit d3936a0
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ The latest released version is [`2.0.0`][release].
* [Intro](#intro)
* [Syntax tree](#syntax-tree)
* [Where this specification fits](#where-this-specification-fits)
* [Types](#types)
* [Nodes](#nodes)
* [`Node`](#node)
* [`Parent`](#parent)
Expand Down Expand Up @@ -81,6 +82,15 @@ unist relates to the [vfile][] project in that it accepts unist nodes for its
message store, and that vfile can be a source *[file][term-file]* of a syntax
tree.

## Types

If you are using TypeScript, you can use the unist types by installing them
with npm:

```sh
npm install @types/unist
```

## Nodes

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

0 comments on commit d3936a0

Please sign in to comment.