Selaa lähdekoodia

need types annotation of growi-directive

reiji-h 1 vuosi sitten
vanhempi
sitoutus
b593ce3801
1 muutettua tiedostoa jossa 2 lisäystä ja 1 poistoa
  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() {
 export const remarkPlugin: Plugin = function() {
   return (tree) => {
   return (tree) => {
-    visit(tree, (node) => {
+    // TODO: setting growi-directive types
+    visit(tree, (node: any) => {
       if (node.type === remarkGrowiDirectivePluginType.Text || node.type === remarkGrowiDirectivePluginType.Leaf) {
       if (node.type === remarkGrowiDirectivePluginType.Text || node.type === remarkGrowiDirectivePluginType.Leaf) {
         if (typeof node.name !== 'string') {
         if (typeof node.name !== 'string') {
           return;
           return;