Skip to content

Commit

Permalink
Expose the HTTP basic methods from yonius to typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
joao-conde committed Jan 8, 2021
1 parent e1795c1 commit 86f9d4a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
9 changes: 9 additions & 0 deletions types/api/api.d.ts
@@ -0,0 +1,9 @@
export declare class API {
constructor(kwargs?: object)
async get(url: string, options?: object): any
async post(url: string, options?: object): any
async put(url: string, options?: object): any
async delete(url: string, options?: object): any
async patch(url: string, options?: object): any
async options(url: string, options?: object): any
}
1 change: 1 addition & 0 deletions types/api/index.d.ts
@@ -0,0 +1 @@
export * from "./api";
1 change: 1 addition & 0 deletions types/index.d.ts
@@ -1,3 +1,4 @@
export * from "./api";
export * from "./base";
export * from "./data";
export * from "./util";

0 comments on commit 86f9d4a

Please sign in to comment.