bitbadgesjs-sdk - v0.22.7
Preparing search index...
createAminoConverter
Function createAminoConverter
createAminoConverter
<
T
extends
Message
<
T
>
=
AnyMessage
>
(
ProtoMessage
:
typeof
Message
,
aminoType
:
string
,
toAmino
?:
<
T
extends
Message
<
T
>
=
AnyMessage
>
(
protoValue
:
any
,
ProtoMessage
:
typeof
Message
,
)
=>
any
,
fromAmino
?:
<
T
extends
Message
<
T
>
=
AnyMessage
>
(
aminoValue
:
any
,
ProtoMessage
:
typeof
Message
,
)
=>
any
,
)
:
{
[
key
:
string
]:
{
aminoType
:
string
;
fromAmino
:
(
aminoValue
:
any
)
=>
any
;
toAmino
:
(
protoValue
:
any
)
=>
any
;
}
;
}
Type Parameters
T
extends
Message
<
T
>
=
AnyMessage
Parameters
ProtoMessage
:
typeof
Message
aminoType
:
string
toAmino
:
<
T
extends
Message
<
T
>
=
AnyMessage
>
(
protoValue
:
any
,
ProtoMessage
:
typeof
Message
,
)
=>
any
= convertProtoValueToDefaultAmino
fromAmino
:
<
T
extends
Message
<
T
>
=
AnyMessage
>
(
aminoValue
:
any
,
ProtoMessage
:
typeof
Message
,
)
=>
any
= convertAminoToProtoValue
Returns
{
[
key
:
string
]:
{
aminoType
:
string
;
fromAmino
:
(
aminoValue
:
any
)
=>
any
;
toAmino
:
(
protoValue
:
any
)
=>
any
;
}
;
}
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
bitbadgesjs-sdk - v0.22.7
Loading...