mirror of
https://github.com/saicaca/fuwari.git
synced 2026-01-11 23:02:53 +01:00
refactor: improve type safety (#155)
* Fix to make it type safe. * The build is failing, fix it.
This commit is contained in:
committed by
GitHub
parent
f79ee3482d
commit
e9c8930559
@@ -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' ||
|
||||
|
||||
Reference in New Issue
Block a user