diff --git a/src/CursorDispensing.ts b/src/CursorDispensing.ts index 8af50385..45f0718a 100644 --- a/src/CursorDispensing.ts +++ b/src/CursorDispensing.ts @@ -36,7 +36,7 @@ export default class CursorDispensing { const updates: { cursor: CursorUpdate; offset: number }[] = message.data || []; updates.forEach((update: { cursor: CursorUpdate; offset: number }) => { - const enhancedMsg = { + const enhancedMsg: { cursor: CursorUpdate; offset: number } = { cursor: { clientId: message.clientId, connectionId: message.connectionId, diff --git a/src/utilities/types.ts b/src/utilities/types.ts index d5c376c4..22eada31 100644 --- a/src/utilities/types.ts +++ b/src/utilities/types.ts @@ -28,6 +28,7 @@ export type Subset = { [attr in keyof T]?: T[attr] extends object ? Subset : T[attr]; }; -export type RealtimeInboundMessage = Omit & { +export type RealtimeInboundMessage = Omit & { + clientId: string; connectionId: string; };