Skip to content

Commit af3f006

Browse files
committed
Update index.ts
1 parent ad825ca commit af3f006

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { GistFile, GistOptions, GistResponse, IGist } from './types';
1+
import { GistFile, GistOptions, GistResponse, IGist, ReqRet } from './types';
22
import createGist from './createGist';
33
import deleteGist from './deleteGist';
44
import getGist from './getGist';
@@ -17,15 +17,15 @@ export default class Gist implements IGist {
1717
files: GistFile,
1818
description: string,
1919
options?: GistOptions
20-
): Promise<GistResponse> {
20+
): Promise<ReqRet<GistResponse>> {
2121
return createGist(files, description, this.token, options);
2222
}
2323

24-
public delete(id: string): Promise<{}> {
24+
public delete(id: string): Promise<ReqRet<any>> {
2525
return deleteGist(id, this.token);
2626
}
2727

28-
public get(id: string): Promise<GistResponse> {
28+
public get(id: string): Promise<ReqRet<GistResponse>> {
2929
return getGist(id, this.token);
3030
}
3131
}

0 commit comments

Comments
 (0)