mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
chore: lint files
This commit is contained in:
@@ -74,7 +74,7 @@ export type ChatModification =
|
||||
}
|
||||
| {
|
||||
star: {
|
||||
messages: { id: string, fromMe?: boolean }[],
|
||||
messages: { id: string, fromMe?: boolean }[]
|
||||
star: boolean
|
||||
}
|
||||
}
|
||||
|
||||
@@ -73,7 +73,7 @@ export type BufferedEventData = {
|
||||
messageUpdates: { [key: string]: WAMessageUpdate }
|
||||
messageDeletes: { [key: string]: WAMessageKey }
|
||||
messageReactions: { [key: string]: { key: WAMessageKey, reactions: proto.IReaction[] } }
|
||||
messageReceipts: { [key: string]: { key: WAMessageKey, userReceipt: proto.IUserReceipt[] } },
|
||||
messageReceipts: { [key: string]: { key: WAMessageKey, userReceipt: proto.IUserReceipt[] } }
|
||||
groupUpdates: { [jid: string]: Partial<GroupMetadata> }
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { Contact } from './Contact'
|
||||
|
||||
export type GroupParticipant = (Contact & { isAdmin?: boolean; isSuperAdmin?: boolean, admin?: 'admin' | 'superadmin' | null })
|
||||
export type GroupParticipant = (Contact & { isAdmin?: boolean, isSuperAdmin?: boolean, admin?: 'admin' | 'superadmin' | null })
|
||||
|
||||
export type ParticipantAction = 'add' | 'remove' | 'promote' | 'demote'
|
||||
|
||||
|
||||
@@ -154,7 +154,7 @@ export type AnyRegularMessageContent = (
|
||||
listReply: Omit<proto.Message.IListResponseMessage, 'contextInfo'>
|
||||
}
|
||||
| {
|
||||
product: WASendableProduct,
|
||||
product: WASendableProduct
|
||||
businessOwnerJid?: string
|
||||
body?: string
|
||||
footer?: string
|
||||
|
||||
@@ -2,7 +2,7 @@ import { WAMediaUpload } from './Message'
|
||||
|
||||
export type CatalogResult = {
|
||||
data: {
|
||||
paging: { cursors: { before: string, after: string } },
|
||||
paging: { cursors: { before: string, after: string } }
|
||||
data: any[]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -43,7 +43,7 @@ export type SocketConfig = {
|
||||
/** time to wait between sending new retry requests */
|
||||
retryRequestDelayMs: number
|
||||
/** time to wait for the generation of the next QR in ms */
|
||||
qrTimeout?: number;
|
||||
qrTimeout?: number
|
||||
/** provide an auth state object to maintain the auth state */
|
||||
auth: AuthenticationState
|
||||
/** manage history processing with this control; by default will sync up everything */
|
||||
|
||||
@@ -52,4 +52,4 @@ export type WABusinessProfile = {
|
||||
address?: string
|
||||
}
|
||||
|
||||
export type CurveKeyPair = { private: Uint8Array; public: Uint8Array }
|
||||
export type CurveKeyPair = { private: Uint8Array, public: Uint8Array }
|
||||
Reference in New Issue
Block a user