Skip to content

Commit

Permalink
Add ESM to hast node type registry
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Jan 31, 2022
1 parent 8aed179 commit 104aac9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions complex-types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,12 @@ declare module 'mdast' {
mdxjsEsm: MdxjsEsm
}
}

declare module 'hast' {
interface RootContentMap {
mdxjsEsm: MdxjsEsm
}
interface ElementContentMap {
mdxjsEsm: MdxjsEsm
}
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
],
"dependencies": {
"@types/estree-jsx": "^0.0.1",
"@types/hast": "^2.0.0",
"@types/mdast": "^3.0.0",
"mdast-util-from-markdown": "^1.0.0",
"mdast-util-to-markdown": "^1.0.0"
Expand Down

0 comments on commit 104aac9

Please sign in to comment.