Skip to content

Commit 1ba556c

Browse files
committed
Fix typing
1 parent a2b9d91 commit 1ba556c

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/slate-remark.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,17 @@ import * as slate from "slate";
22
import * as mdast from "./models/mdast";
33
import { Node } from "unist";
44
import { SlateNode } from "./remark-slate";
5+
import { Plugin } from "unified";
56

6-
export default function plugin() {
7+
const plugin: Plugin<[{}?]> = function (settings?: {}) {
78
// @ts-ignore
89
return transformer;
910

10-
function transformer(node: slate.Node): Node {
11+
function transformer(node: any): Node {
1112
return createMdastRoot(node);
1213
}
13-
}
14+
};
15+
export default plugin;
1416

1517
function createMdastRoot(node: slate.Node): Node {
1618
const root: mdast.Root = {

0 commit comments

Comments
 (0)