Upgrade mcschema core

This commit is contained in:
Misode
2021-01-16 15:59:32 +01:00
parent 8e7668b3b9
commit f543c4465c
8 changed files with 9 additions and 47 deletions

View File

@@ -5,10 +5,6 @@ export const transformOutput: Hook<[any], any> = {
return value
},
boolean({}, _, value) {
return value
},
choice({ switchNode }, path, value) {
return switchNode.hook(this, path, value)
},
@@ -29,10 +25,6 @@ export const transformOutput: Hook<[any], any> = {
return res;
},
number({}, _, value) {
return value
},
object({ getActiveFields }, path, value) {
if (value === undefined || value === null || typeof value !== 'object') {
return value
@@ -45,9 +37,5 @@ export const transformOutput: Hook<[any], any> = {
res[f] = activeFields[f].hook(this, path.push(f), value[f])
})
return res
},
string({}, _, value) {
return value
}
}