@manahippo/move-to-ts
Advanced tools
Comparing version 0.4.6 to 0.5.0
{ | ||
"name": "@manahippo/move-to-ts", | ||
"version": "0.4.6", | ||
"version": "0.5.0", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -246,3 +246,3 @@ import { | ||
export function payloadArg(val: any) { | ||
export function payloadArg(val: any):any { | ||
if (val instanceof UnsignedInt) { | ||
@@ -275,3 +275,6 @@ if (val instanceof U8) { | ||
} | ||
} else { | ||
} else if (val instanceof Array) { | ||
return val.map(payloadArg); | ||
} | ||
else { | ||
throw new Error(`Unexpected value type: ${typeof val}`); | ||
@@ -278,0 +281,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
565818
9311