Skip to content

Commit

Permalink
Fixed type in createConversation methods.
Browse files Browse the repository at this point in the history
  • Loading branch information
marcin-cebo committed Jan 29, 2025
1 parent d59ff18 commit 251c6ff
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions js-chat/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@
"module": "dist/index.es.js",
"types": "dist/index.d.ts",
"react-native": "dist/index.es.js",
"version": "0.11.1",
"version": "0.11.0",
"name": "@pubnub/chat",
"dependencies": {
"pubnub": "8.4.1",
"pubnub": "8.6.0",
"format-util": "^1.0.5"
}
}
6 changes: 3 additions & 3 deletions src/jsMain/resources/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -706,7 +706,7 @@ declare class Chat {
*/
createPublicConversation({ channelId, channelData }?: {
channelId?: string;
channelData?: AppContext.SetChannelMetadataParameters<AppContext.CustomData>;
channelData?: AppContext.ChannelMetadata<AppContext.CustomData>;
}): Promise<Channel>;
/**
* Presence
Expand All @@ -717,7 +717,7 @@ declare class Chat {
createDirectConversation({ user, channelId, channelData, membershipData }: {
user: User;
channelId?: string;
channelData?: AppContext.SetChannelMetadataParameters<AppContext.CustomData>;
channelData?: AppContext.ChannelMetadata<AppContext.CustomData>;
membershipData?: Omit<AppContext.SetMembershipsParameters<AppContext.CustomData>, "channels" | "include" | "filter"> & {
custom?: AppContext.CustomData;
};
Expand All @@ -729,7 +729,7 @@ declare class Chat {
createGroupConversation({ users, channelId, channelData, membershipData }: {
users: User[];
channelId?: string;
channelData?: AppContext.SetChannelMetadataParameters<AppContext.CustomData>;
channelData?: AppContext.ChannelMetadata<AppContext.CustomData>;
membershipData?: Omit<AppContext.SetMembershipsParameters<AppContext.CustomData>, "channels" | "include" | "filter"> & {
custom?: AppContext.CustomData;
};
Expand Down

0 comments on commit 251c6ff

Please sign in to comment.