From 34afa60aff36fe6cfaa32c7663b21097a09a5ef6 Mon Sep 17 00:00:00 2001 From: Nya Candy Date: Sun, 17 Oct 2021 13:03:43 +0800 Subject: [PATCH] feat: add type definition for messagingMessage event to main stream channel (#30) * add: type definition for messagingMessage event * update: changelog --- CHANGELOG.md | 3 +++ src/streaming.types.ts | 1 + 2 files changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index a43b4cef2d..778764bd99 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +# 0.0.8(wip) +- add type definition for `messagingMessage` event to main stream channel + # 0.0.7 - Notificationsの型を修正 - MessagingMessageの型を修正 diff --git a/src/streaming.types.ts b/src/streaming.types.ts index 52f8405774..1e8f9db9ae 100644 --- a/src/streaming.types.ts +++ b/src/streaming.types.ts @@ -16,6 +16,7 @@ export type Channels = { meUpdated: (payload: MeDetailed) => void; pageEvent: (payload: PageEvent) => void; urlUploadFinished: (payload: { marker: string; file: DriveFile; }) => void; + messagingMessage: (payload: MessagingMessage) => void; readAllNotifications: () => void; unreadNotification: () => void; unreadMention: () => void;