@@ -124,7 +124,7 @@ export default class WooCommerceRestApi {
124
124
endpoint : string ,
125
125
data : any ,
126
126
params : any
127
- ) : any
127
+ ) : Promise < any >
128
128
129
129
/**
130
130
* GET requests
@@ -134,8 +134,8 @@ export default class WooCommerceRestApi {
134
134
*
135
135
* @return {Object }
136
136
*/
137
- public get ( endpoint : string ) : any
138
- public get ( endpoint : string , params : any ) : any
137
+ public get ( endpoint : string ) : Promise < any >
138
+ public get ( endpoint : string , params : any ) : Promise < any >
139
139
140
140
/**
141
141
* POST requests
@@ -146,8 +146,8 @@ export default class WooCommerceRestApi {
146
146
*
147
147
* @return {Object }
148
148
*/
149
- public post ( endpoint : string , data : any ) : any
150
- public post ( endpoint : string , data : any , params : any ) : any
149
+ public post ( endpoint : string , data : any ) : Promise < any >
150
+ public post ( endpoint : string , data : any , params : any ) : Promise < any >
151
151
152
152
/**
153
153
* PUT requests
@@ -158,8 +158,8 @@ export default class WooCommerceRestApi {
158
158
*
159
159
* @return {Object }
160
160
*/
161
- public put ( endpoint : string , data : any ) : any
162
- public put ( endpoint : string , data : any , params : any ) : any
161
+ public put ( endpoint : string , data : any ) : Promise < any >
162
+ public put ( endpoint : string , data : any , params : any ) : Promise < any >
163
163
164
164
/**
165
165
* DELETE requests
@@ -170,8 +170,8 @@ export default class WooCommerceRestApi {
170
170
*
171
171
* @return {Object }
172
172
*/
173
- public delete ( endpoint : string ) : any
174
- public delete ( endpoint : string , params : any ) : any
173
+ public delete ( endpoint : string ) : Promise < any >
174
+ public delete ( endpoint : string , params : any ) : Promise < any >
175
175
176
176
/**
177
177
* OPTIONS requests
@@ -181,8 +181,8 @@ export default class WooCommerceRestApi {
181
181
*
182
182
* @return {Object }
183
183
*/
184
- public options ( endpoint : string ) : any
185
- public options ( endpoint : string , params : any ) : any
184
+ public options ( endpoint : string ) : Promise < any >
185
+ public options ( endpoint : string , params : any ) : Promise < any >
186
186
}
187
187
188
188
/**
0 commit comments