File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 11import { GistFile , GistOptions , GistResponse , IGist } from "./types" ;
22import createGist from "./createGist" ;
3+ import deleteGist from "./deleteGist" ;
4+ import getGist from "./getGist" ;
35
46export 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}
You can’t perform that action at this time.
0 commit comments