Skip to content

Commit 15f61f6

Browse files
committed
fix module imports
1 parent d5314a5 commit 15f61f6

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

index.d.ts

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,14 @@
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'
52

6-
export type WooCommerceRestApiVersion =
3+
export declare type WooCommerceRestApiVersion =
74
| 'wc/v3'
85
| 'wc/v2'
96
| 'wc/v1'
107
| 'wc-api/v3'
118
| 'wc-api/v2'
129
| '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 =
1512
| 'get'
1613
| 'post'
1714
| 'put'
@@ -50,7 +47,7 @@ export interface IWooCommerceRestApiQuery {
5047
*
5148
* @param {Object} opt
5249
*/
53-
export class WooCommerceRestApi {
50+
export default class WooCommerceRestApi {
5451
protected classVersion: string
5552
protected url: string
5653
protected consumerKey: string
@@ -202,5 +199,3 @@ export class OptionsException {
202199
*/
203200
constructor(message: string)
204201
}
205-
206-
export default WooCommerceRestApi

0 commit comments

Comments
 (0)