Просмотр исходного кода

need types annotation of growi-directive

reiji-h 1 год назад
Родитель
Сommit
b593ce3801
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      packages/remark-lsx/src/client/services/renderer/lsx.ts

+ 2 - 1
packages/remark-lsx/src/client/services/renderer/lsx.ts

@@ -17,7 +17,8 @@ type DirectiveAttributes = Record<string, string>
 
 export const remarkPlugin: Plugin = function() {
   return (tree) => {
-    visit(tree, (node) => {
+    // TODO: setting growi-directive types
+    visit(tree, (node: any) => {
       if (node.type === remarkGrowiDirectivePluginType.Text || node.type === remarkGrowiDirectivePluginType.Leaf) {
         if (typeof node.name !== 'string') {
           return;