Skip to content

Commit 0c36949

Browse files
committed
Update index.ts
1 parent d400cec commit 0c36949

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/index.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
import { GistFile, GistOptions, GistResponse, IGist, ReqRet } from './types';
2-
import createGist from './gist/create';
3-
import deleteGist from './gist/delete';
4-
import getGist from './gist/get';
2+
import { _create, _delete, _get } from './gist';
53

64
export default class Gist implements IGist {
75
public readonly token: string;
@@ -18,14 +16,14 @@ export default class Gist implements IGist {
1816
description: string,
1917
options?: GistOptions
2018
): Promise<ReqRet<GistResponse>> {
21-
return createGist(files, description, this.token, options);
19+
return _create(files, description, this.token, options);
2220
}
2321

2422
public delete(id: string): Promise<ReqRet<any>> {
25-
return deleteGist(id, this.token);
23+
return _delete(id, this.token);
2624
}
2725

2826
public get(id: string): Promise<ReqRet<GistResponse>> {
29-
return getGist(id, this.token);
27+
return _get(id, this.token);
3028
}
3129
}

0 commit comments

Comments
 (0)