File tree Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Original file line number Diff line number Diff line change 1
- import axios from 'axios'
2
- import createHmac from 'create-hmac'
3
- import OAuth from 'oauth-1.0a'
4
- import Url from 'url-parse'
1
+ import * as OAuth from 'oauth-1.0a'
5
2
6
- export type WooCommerceRestApiVersion =
3
+ export declare type WooCommerceRestApiVersion =
7
4
| 'wc/v3'
8
5
| 'wc/v2'
9
6
| 'wc/v1'
10
7
| 'wc-api/v3'
11
8
| 'wc-api/v2'
12
9
| 'wc-api/v1'
13
- export type WooCommerceRestApiEncoding = 'utf-8' | 'ascii'
14
- export type WooCommerceRestApiMethod =
10
+ export declare type WooCommerceRestApiEncoding = 'utf-8' | 'ascii'
11
+ export declare type WooCommerceRestApiMethod =
15
12
| 'get'
16
13
| 'post'
17
14
| 'put'
@@ -50,7 +47,7 @@ export interface IWooCommerceRestApiQuery {
50
47
*
51
48
* @param {Object } opt
52
49
*/
53
- export class WooCommerceRestApi {
50
+ export default class WooCommerceRestApi {
54
51
protected classVersion : string
55
52
protected url : string
56
53
protected consumerKey : string
@@ -202,5 +199,3 @@ export class OptionsException {
202
199
*/
203
200
constructor ( message : string )
204
201
}
205
-
206
- export default WooCommerceRestApi
You can’t perform that action at this time.
0 commit comments