Fix get order. (#1274)

* Fix get order.

* Fix types.
This commit is contained in:
Alon Schwartzblat
2022-03-02 05:08:27 +02:00
committed by GitHub
parent 1b75d0d243
commit c45fae5c15
3 changed files with 8 additions and 7 deletions

4
index.d.ts vendored
View File

@@ -716,11 +716,11 @@ declare namespace WAWebJS {
/**
* Gets the order associated with a given message
*/
getOrder: () => Order,
getOrder: () => Promise<Order>,
/**
* Gets the payment details associated with a given message
*/
getPayment: () => Payment,
getPayment: () => Promise<Payment>,
}
/** ID that represents a message */