Preparing search index...
The search index is not available
@xmtp/xmtp-js
@xmtp/xmtp-js
ContentCodec
Interface ContentCodec<T>
interface
ContentCodec
<
T
>
{
contentType
:
ContentTypeId
;
decode
(
content
,
registry
)
:
T
;
encode
(
content
,
registry
)
:
EncodedContent
<
Record
<
string
,
string
>
>
;
fallback
(
content
)
:
undefined
|
string
;
}
Type Parameters
T
Implemented by
CompositeCodec
TextCodec
Index
Properties
content
Type
Methods
decode
encode
fallback
Properties
content
Type
content
Type
:
ContentTypeId
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
decode
encode
fallback
@xmtp/xmtp-js
AuthCache
BrowserStoragePersistence
Ciphertext
Client
CompositeCodec
ConsentListEntry
ContentTypeId
ConversationV1
ConversationV2
Conversations
DecodedMessage
EncryptedPersistence
HttpApiClient
InMemoryKeystore
InMemoryPersistence
InvitationV1
KeyGeneratorKeystoreProvider
LocalAuthenticator
MessageV1
MessageV2
NetworkKeystoreProvider
Loading...
Generated using
TypeDoc