Skip to content

Commit

Permalink
make Text.of(...) param more accurate
Browse files Browse the repository at this point in the history
  • Loading branch information
ZZZank committed Aug 5, 2024
1 parent d9d85bc commit 79b63ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/zzzank/probejs/docs/ParamFix.java
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package zzzank.probejs.docs;

import dev.latvian.kubejs.bindings.TextWrapper;
import dev.latvian.kubejs.text.Text;
import lombok.val;
import net.minecraft.network.chat.MutableComponent;
import zzzank.probejs.lang.java.clazz.ClassPath;
import zzzank.probejs.lang.typescript.ScriptDump;
import zzzank.probejs.lang.typescript.TypeScriptFile;
Expand All @@ -23,7 +23,7 @@ public void modifyClasses(ScriptDump scriptDump, Map<ClassPath, TypeScriptFile>
textWrapper,
m -> m.params.size() == 1 && m.name.equals("of"),
0,
Types.type(MutableComponent.class)
Types.type(Text.class)
);
}
}

0 comments on commit 79b63ab

Please sign in to comment.