Preparing search index...
The search index is not available
@xmtp/xmtp-js
@xmtp/xmtp-js
ContentCodec
Interface ContentCodec<T>
interface
ContentCodec
<
T
>
{
contentType
:
ContentTypeId
;
shouldPush
:
(
(
content
)
=>
boolean
)
;
decode
(
content
,
registry
)
:
T
;
encode
(
content
,
registry
)
:
EncodedContent
<
Record
<
string
,
string
>
>
;
fallback
(
content
)
:
undefined
|
string
;
}
Type Parameters
T
Implemented by
TextCodec
Index
Properties
content
Type
should
Push
Methods
decode
encode
fallback
Properties
content
Type
content
Type
:
ContentTypeId
should
Push
should
Push
:
(
(
content
)
=>
boolean
)
Type declaration
(
content
)
:
boolean
Parameters
content
:
T
Returns
boolean
Methods
decode
decode
(
content
,
registry
)
:
T
Parameters
content
:
EncodedContent
<
Record
<
string
,
string
>
>
registry
:
CodecRegistry
Returns
T
encode
encode
(
content
,
registry
)
:
EncodedContent
<
Record
<
string
,
string
>
>
Parameters
content
:
T
registry
:
CodecRegistry
Returns
EncodedContent
<
Record
<
string
,
string
>
>
fallback
fallback
(
content
)
:
undefined
|
string
Parameters
content
:
T
Returns
undefined
|
string
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
content
Type
should
Push
decode
encode
fallback
@xmtp/xmtp-js
Loading...