From 0045f2595af8a52b8590ab6ad0dc88292b49ef47 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Thu, 20 May 2021 12:20:30 +0800 Subject: [PATCH] type: Fix type errors. --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 62b99e0..a13a703 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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) => {