Skip to content

Commit 83cb504

Browse files
committed
Update index.ts
1 parent e445f4c commit 83cb504

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/index.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import { GistFile, GistOptions, GistResponse, IGist } from "./types";
22
import createGist from "./createGist";
3+
import deleteGist from "./deleteGist";
4+
import getGist from "./getGist";
35

46
export default class Gist implements IGist {
57
public readonly token: string;
@@ -16,11 +18,11 @@ export default class Gist implements IGist {
1618
return createGist(files, description, this.token, options);
1719
}
1820

19-
public delete(id: string): Promise<any> {
20-
throw new Error("Method not implemented.");
21+
public delete(id: string): Promise<{}> {
22+
return deleteGist(id, this.token);
2123
}
2224

23-
public get(id: string): Promise<any> {
24-
throw new Error("Method not implemented.");
25+
public get(id: string): Promise<GistResponse> {
26+
return getGist(id, this.token);
2527
}
2628
}

0 commit comments

Comments
 (0)