Update metadata (#5499)

* Updata metadata

* Rebuild

* Adjust generation
This commit is contained in:
Jaco
2023-02-19 12:36:41 +02:00
committed by GitHub
parent cda07dfa0b
commit eb5c888cb8
44 changed files with 7787 additions and 9447 deletions
+2 -4
View File
@@ -50,16 +50,14 @@ function entrySignature (lookup: PortableRegistry, allDefs: Record<string, Modul
storageEntry.modifier.isOptional
? 'Option'
: null,
defValue.lookupName
? undefined
: defValue.type
defValue.lookupName || defValue.type
]);
return [
storageEntry.modifier.isOptional,
keyDefs.map((k) => formatType(registry, allDefs, k.lookupName || k.type, imports)).join(', '),
keyTypes.map((t, i) => `arg${keyTypes.length === 1 ? '' : (i + 1)}: ${t}`).join(', '),
formatType(registry, allDefs, outputType, imports)
outputType.lookupName || formatType(registry, allDefs, outputType, imports)
];
}