feat: add nukkit support
Signed-off-by: MiaoWoo <admin@yumc.pw>
This commit is contained in:
parent
a0b334b151
commit
c13668dbe2
@ -1,5 +1,5 @@
|
|||||||
# sponge bukkit jdk bungee
|
# sponge bukkit jdk bungee nukkit
|
||||||
TYPE=bungee
|
TYPE=nukkit
|
||||||
TARGET=../types/dist/typings
|
TARGET=../types/dist/typings
|
||||||
npx tsc src/build.ts --outDir dist
|
npx tsc src/build.ts --outDir dist
|
||||||
cd dist
|
cd dist
|
||||||
|
@ -178,7 +178,7 @@ typeMap['Matrix4d'] = 'any /*Matrix4d*/'
|
|||||||
function mappingType(type: string): string {
|
function mappingType(type: string): string {
|
||||||
let outType = typeMap[type] || type || 'any';
|
let outType = typeMap[type] || type || 'any';
|
||||||
if (outType.indexOf('.') != -1) {
|
if (outType.indexOf('.') != -1) {
|
||||||
if (outType.startsWith('java.') || outType.startsWith('org.') || outType.startsWith('net.')) {
|
if (outType.startsWith('java.') || outType.startsWith('org.') || outType.startsWith('net.') || outType.startsWith('cn.')) {
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
outType = `any /*${outType}*/`
|
outType = `any /*${outType}*/`
|
||||||
|
Loading…
Reference in New Issue
Block a user