Skip to content

Commit dccab72

Browse files
James TsaiJames Tsai
authored andcommitted
fix: add default class for API client
1 parent fe80a68 commit dccab72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nodejs/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import axios, { AxiosInstance, AxiosRequestConfig, AxiosError, AxiosResponse } f
22
import { User, Note, Team, CreateNoteOptions } from './type'
33
import * as HackMDErrors from './error'
44

5-
export class API {
5+
export default class API {
66
private axios: AxiosInstance
77

88
constructor (readonly accessToken: string, public hackmdAPIEndpointURL: string = "https://api.hackmd.io/v1") {

0 commit comments

Comments
 (0)