jsonRef
jsonRef<
TypeEncoded>(type,input,key):TypeEncodedextends"JSONString"?bytes:TypeEncodedextends"JSONUint64"?uint64:bytes
Type parameters
• TypeEncoded extends "JSONString" | "JSONUint64" | "JSONObject"
Parameters
• type: TypeEncoded
• input: Brand<string, "bytes">
• key: Brand<string, "bytes">
Returns
TypeEncoded extends "JSONString" ? bytes : TypeEncoded extends "JSONUint64" ? uint64 : bytes