Umi — API References - v1.3.0
Preparing search index...
umi-serializers
mapSerializer
Function mapSerializer
mapSerializer
<
NewFrom
,
OldFrom
,
To
>
(
serializer
:
Serializer
<
OldFrom
,
To
>
,
unmap
:
(
value
:
NewFrom
)
=>
OldFrom
,
)
:
Serializer
<
NewFrom
,
To
>
Converts a serializer A to a serializer B by mapping their values.
Type Parameters
NewFrom
OldFrom
To
Parameters
serializer
:
Serializer
<
OldFrom
,
To
>
unmap
:
(
value
:
NewFrom
)
=>
OldFrom
Returns
Serializer
<
NewFrom
,
To
>
mapSerializer
<
NewFrom
,
OldFrom
,
NewTo
=
NewFrom
,
OldTo
=
OldFrom
>
(
serializer
:
Serializer
<
OldFrom
,
OldTo
>
,
unmap
:
(
value
:
NewFrom
)
=>
OldFrom
,
map
:
(
value
:
OldTo
,
buffer
:
Uint8Array
,
offset
:
number
)
=>
NewTo
,
)
:
Serializer
<
NewFrom
,
NewTo
>
Converts a serializer A to a serializer B by mapping their values.
Type Parameters
NewFrom
OldFrom
NewTo
=
NewFrom
OldTo
=
OldFrom
Parameters
serializer
:
Serializer
<
OldFrom
,
OldTo
>
unmap
:
(
value
:
NewFrom
)
=>
OldFrom
map
:
(
value
:
OldTo
,
buffer
:
Uint8Array
,
offset
:
number
)
=>
NewTo
Returns
Serializer
<
NewFrom
,
NewTo
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Umi — API References - v1.3.0
Loading...
Converts a serializer A to a serializer B by mapping their values.