fix luamultireturn
This commit is contained in:
parent
3dbadcf775
commit
b5e1131729
2
index.js
2
index.js
|
@ -28,7 +28,7 @@ function transpileType(type) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (type.startsWith('LuaMultiReturn<[') && type.endsWith(']>')) {
|
if (type.startsWith('LuaMultiReturn<[') && type.endsWith(']>')) {
|
||||||
return type.replace('LuaMultiReturn<[','').replace(']>','').split(',').map(t => transpileType(t.split(':')[1])).join(', ');
|
return type.replace('LuaMultiReturn<[','').replace(']>','').split(',').map(t => transpileType(t.split(':')[1] || t)).join(', ');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (type.includes('|')) {
|
if (type.includes('|')) {
|
||||||
|
|
Loading…
Reference in New Issue