Skip to content

Commit

Permalink
build: Use correct Node and Parent types from unist (Doist#376)
Browse files Browse the repository at this point in the history
  • Loading branch information
rfgamaral authored and jerrywcy committed Aug 12, 2023
1 parent c699f10 commit 83b674d
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@
"@testing-library/dom": "9.3.1",
"@testing-library/jest-dom": "5.17.0",
"@testing-library/react": "14.0.0",
"@types/hast": "2.3.5",
"@types/lodash-es": "4.17.8",
"@types/react": "18.2.18",
"@types/react-dom": "18.2.7",
Expand Down
2 changes: 1 addition & 1 deletion src/serializers/html/plugins/rehype-image.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import { isElement } from 'hast-util-is-element'
import { remove } from 'unist-util-remove'
import { visit } from 'unist-util-visit'

import type { Node, Parent } from 'hast'
import type { Schema } from 'prosemirror-model'
import type { Transformer } from 'unified'
import type { Node, Parent } from 'unist'

/**
* A rehype plugin to remove the wrapping paragraph from images and to remove all inline images if
Expand Down

0 comments on commit 83b674d

Please sign in to comment.