TypedMessage Interface
A message that has a string type
associated with content
.
This API is provided for existing users, but is not recommended for new users.
To use, import via @fluidframework/core-interfaces/legacy
.
For more information about our API support guarantees, see here.
Signature
export interface TypedMessage
Remarks
This type is meant to be used indirectly. Most commonly as a constraint for generics of message structures.
Properties
Property | Alerts | Type | Description |
---|---|---|---|
content | Alpha |
unknown | The contents of the message. |
type | Alpha |
string | The type of the message. |
Property Details
content
The contents of the message.
This API is provided for existing users, but is not recommended for new users.
For more information about our API support guarantees, see here.
Signature
content: unknown;
Type: unknown
type
The type of the message.
This API is provided for existing users, but is not recommended for new users.
For more information about our API support guarantees, see here.
Signature
type: string;
Type: string