Skip to content

Commit 3e30b29

Browse files
Move mdast types to dev dependencies
Closes GH-41. Reviewed-by: Titus Wormer <[email protected]>
1 parent 8548e60 commit 3e30b29

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
],
3232
"types": "types/index.d.ts",
3333
"dependencies": {
34-
"@types/mdast": "^3.0.0",
3534
"collapse-white-space": "^1.0.0",
3635
"detab": "^2.0.0",
3736
"mdast-util-definitions": "^3.0.0",
@@ -43,6 +42,7 @@
4342
"unist-util-visit": "^2.0.0"
4443
},
4544
"devDependencies": {
45+
"@types/mdast": "^3.0.0",
4646
"browserify": "^16.0.0",
4747
"dtslint": "^3.0.0",
4848
"nyc": "^15.0.0",

readme.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@
2020
npm install mdast-util-to-hast
2121
```
2222

23+
[npm][] with [TypeScript][] support:
24+
25+
```sh
26+
npm install mdast-util-to-hast @types/mdast
27+
```
28+
2329
## Use
2430

2531
Say we have the following `example.md`:
@@ -340,6 +346,8 @@ abide by its terms.
340346

341347
[npm]: https://docs.npmjs.com/cli/install
342348

349+
[typescript]: https://www.typescriptlang.org
350+
343351
[license]: license
344352

345353
[author]: https://wooorm.com

0 commit comments

Comments
 (0)