Fix packages/types/src/codec/utils/encodeTypes.ts encodeSubTypes bug (#1544)
This commit is contained in:
committed by
Jaco Greeff
parent
56dc116d92
commit
fcf89d1501
@@ -38,7 +38,7 @@ function encodeSubTypes (sub: TypeDef[], asEnum?: boolean): string {
|
||||
sub
|
||||
.map((type: TypeDef): string => `"${type.name}": "${encodeWithParams(type)}"`)
|
||||
.join(', ')
|
||||
}} }`;
|
||||
}${asEnum ? '" }"' : ''} }`;
|
||||
}
|
||||
|
||||
function encodeEnum (typeDef: Pick<TypeDef, any>): string {
|
||||
|
||||
Reference in New Issue
Block a user