Skip to content

Commit

Permalink
🏷️ type updates
Browse files Browse the repository at this point in the history
  • Loading branch information
smashah committed Feb 13, 2023
1 parent a044353 commit 4567de3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/api/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Chat, LiveLocationChangedEvent, ChatState, ChatMuteDuration, GroupChatC
import { Contact, NumberCheck } from './model/contact';
import { Message, MessageInfo, PollData } from './model/message';
import { default as axios, AxiosRequestConfig} from 'axios';
import { NewCommunityGroup, ParticipantChangedEventModel, GenericGroupChangeEvent } from './model/group-metadata';
import { NewCommunityGroup, ParticipantChangedEventModel, GenericGroupChangeEvent, GroupMetadata } from './model/group-metadata';
import { useragent } from '../config/puppeteer.config'
import { ConfigObject, STATE, LicenseType, Webhook, OnError, EventPayload } from './model';
import { PageEvaluationTimeout, CustomError, ERROR_NAME, AddParticipantError } from './model/errors';
Expand Down
5 changes: 3 additions & 2 deletions src/api/model/message.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { ChatId, ContactId, MessageId } from "./aliases";
import { Button, Row, Section } from "./button";
import { Chat } from "./chat";
import { Contact } from "./contact";
import { GroupChatId } from '../../../types-only/dist/api/model/aliases';

export interface Message {
/**
Expand Down Expand Up @@ -157,7 +158,7 @@ export interface Message {
*
* If this is `true` then you need to determine within your own code whether or not to accept the user to the group which is indicated with `quotedRemoteJid` using `addParticipant`.
*/
isGroupJoinRequest ?: boolean;
isGroupJoinRequest ?: GroupChatId;
/**
* The ID of the message sender
*/
Expand All @@ -169,7 +170,7 @@ export interface Message {
/**
* The parent group ID (community ID - communities are just groups made up of other groups) of the group represented by `quotedRemoteJid`
*/
quotedParentGroupJid ?: string,
quotedParentGroupJid ?: GroupChatId,
mediaData: unknown;
shareDuration: number;
isAnimated: boolean;
Expand Down

0 comments on commit 4567de3

Please sign in to comment.