From 0d9e9b7c28f2bb012b6009432e19076cf425d768 Mon Sep 17 00:00:00 2001 From: Alexander Emelin Date: Sun, 13 Aug 2023 18:25:14 +0300 Subject: [PATCH] fix types: use Record instead of Map (#244) --- CHANGELOG.md | 5 +++++ src/types.ts | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2884e235..d7e6a06d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +4.1.0 +===== + +* Fix types: use `Record` instead of `Map` for publication tags and `clients` field of `PresenceResult`. + 4.0.1 ===== diff --git a/src/types.ts b/src/types.ts index e88cbd96..3fd39c4d 100644 --- a/src/types.ts +++ b/src/types.ts @@ -173,7 +173,7 @@ export interface PublicationContext { data: any; info?: ClientInfo; offset?: number; - tags?: Map; + tags?: Record; } export interface ClientInfo { @@ -243,7 +243,7 @@ export interface ServerPublicationContext { data: any; info?: ClientInfo; offset?: number; - tags?: Map; + tags?: Record; } export interface ServerJoinContext { @@ -289,7 +289,7 @@ export interface RpcResult { } export interface PresenceResult { - clients: Map; + clients: Record; } export interface PresenceStatsResult {