From ab5167c4ade7365a92292aac00f02e27e60fd97b Mon Sep 17 00:00:00 2001 From: SuperChang Date: Mon, 28 Feb 2022 10:34:12 +0800 Subject: [PATCH] fix: `ChangeParticipantsPermissions` typo in index.d.ts (#1206) Co-authored-by: Pedro S. Lopez --- index.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.d.ts b/index.d.ts index 70e7d99..b391515 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1048,7 +1048,7 @@ declare namespace WAWebJS { } /** Promotes or demotes participants by IDs to regular users or admins */ - export type ChangeParticipantsPermisions = + export type ChangeParticipantsPermissions = (participantIds: Array) => Promise<{ status: number }> /** Adds or removes a list of participants by ID to the group */ @@ -1078,9 +1078,9 @@ declare namespace WAWebJS { /** Removes a list of participants by ID to the group */ removeParticipants: ChangeGroupParticipants; /** Promotes participants by IDs to admins */ - promoteParticipants: ChangeParticipantsPermisions; + promoteParticipants: ChangeParticipantsPermissions; /** Demotes participants by IDs to regular users */ - demoteParticipants: ChangeParticipantsPermisions; + demoteParticipants: ChangeParticipantsPermissions; /** Updates the group subject */ setSubject: (subject: string) => Promise; /** Updates the group description */