Skip to content

jsonRef

jsonRef<TypeEncoded>(type, input, key): TypeEncoded extends "JSONString" ? bytes : TypeEncoded extends "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

Source

types/global.d.ts:1503