Skip to content

Commit

Permalink
Review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
wkal-pubnub committed Jan 15, 2025
1 parent 145ace4 commit ff8159e
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions src/jsMain/resources/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ declare class Membership {
private chat;
readonly channel: Channel;
readonly user: User;
readonly custom: AppContext.CustomData | null | undefined;
readonly custom?: AppContext.CustomData | null;
readonly updated: string;
readonly eTag: string;
update({ custom }: {
Expand Down Expand Up @@ -247,14 +247,10 @@ type SendTextOptionParams = Omit<Publish.PublishParameters, "message" | "channel
referencedChannels?: MessageReferencedChannels;
textLinks?: TextLink[];
quotedMessage?: Message;
files?: FileList | File[] | FileSharing.SendFileParameters<any>["file"][];
files?: FileList | File[] | FileSharing.SendFileParameters<PubNub.PubNubFileParameters>["file"][];
};
type EnhancedMessageEvent = Subscription.MessageEvent & {
userMetadata?: {
[key: string]: any;
};
};
type MessageDTOParams = History.FetchMessagesResponse["channels"]["channel"][0] | EnhancedMessageEvent;
type EnhancedMessageEvent = Subscription.Message;
type MessageDTOParams = History.FetchMessagesForChannelsResponse['channels'][string][number] | History.FetchMessagesWithActionsResponse['channels'][string][number] | EnhancedMessageEvent;
type ThreadMessageDTOParams = MessageDTOParams & {
parentChannelId: string;
};
Expand Down Expand Up @@ -427,7 +423,7 @@ export declare class MessageDraftV2 {
get value(): string;
quotedMessage: Message | undefined;
readonly config: MessageDraftConfig;
files?: FileList | File[] | FileSharing.SendFileParameters<any>["file"][];
files?: FileList | File[] | FileSharing.SendFileParameters<PubNub.PubNubFileParameters>["file"][];
addQuote(message: Message): void;
removeQuote(): void;
addLinkedText(params: AddLinkedTextParams): void;
Expand Down Expand Up @@ -463,7 +459,7 @@ declare class MessageDraft {
value: string;
quotedMessage: Message | undefined;
readonly config: MessageDraftConfig;
files?: FileList | File[] | FileSharing.SendFileParameters<any>["file"][];
files?: FileList | File[] | FileSharing.SendFileParameters<PubNub.PubNubFileParameters>["file"][];
onChange(text: string): Promise<{
users: {
nameOccurrenceIndex: number;
Expand Down

0 comments on commit ff8159e

Please sign in to comment.