Skip to content

Free, Open Source, Self-Hosted WhatsApp API Gateway

docs(sdk-js): attach the history JSDoc to ChatHistoryMessage

Yudhi Armyndharisb04cf3f81df8
diff --git a/sdk/javascript/src/types.ts b/sdk/javascript/src/types.ts
index 0faa53e59..d12c92055 100644
--- a/sdk/javascript/src/types.ts
+++ b/sdk/javascript/src/types.ts
@@ -527,10 +527,6 @@ export interface MessageRecord {
createdAt: string;
}
-/**
- * A message read live from WhatsApp by `messages.history()`. This is the engine
- * payload (richer and differently shaped than the persisted {@link MessageRecord}).
- */
/**
* The engine-normalized message kinds — persisted rows, `message.received`/`message.sent`
* payloads and the websocket all use these values (raw engine tokens are normalized at the
@@ -554,6 +550,10 @@ export type MessageType =
| 'masked'
| 'unknown';
+/**
+ * A message read live from WhatsApp by `messages.history()`. This is the engine
+ * payload (richer and differently shaped than the persisted {@link MessageRecord}).
+ */
export interface ChatHistoryMessage {
id: string;
from: Jid;