Skip to content

Commit

Permalink
type: Fix type errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed May 20, 2021
1 parent d12256e commit 0045f25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Plugin } from 'unified'
import visit from './visit'

export type MdastTransformer = (tree: Root) => void
export type RemarkRewriteHandle = (node: Content, index: number, parent: Parent) => Content
export type RemarkRewriteHandle = (node: Content, index: number, parent: Parent) => void

const remarkRewrite: Plugin<[RemarkRewriteHandle?]> = (handle): MdastTransformer =>{
return (tree: Root) => {
Expand Down

0 comments on commit 0045f25

Please sign in to comment.