refactor: improve type safety (#155)

* Fix to make it type safe.

* The build is failing, fix it.
This commit is contained in:
Katsuyuki Karasawa authored and GitHub committed 2024-08-28 00:19:26 +08:00
1 parent f79ee3482d
commit e9c8930559
10 files changed
+489 -133

No files matched your search

+1 -1
View File
@@ -4,7 +4,7 @@ import { visit } from 'unist-util-visit'
export function parseDirectiveNode() {
return (tree, { data }) => {
visit(tree, function (node) {
visit(tree, node => {
if (
node.type === 'containerDirective' ||
node.type === 'leafDirective' ||