diff --git a/types/api/api.d.ts b/types/api/api.d.ts new file mode 100644 index 0000000..14937ad --- /dev/null +++ b/types/api/api.d.ts @@ -0,0 +1,9 @@ +export declare class API { + constructor(kwargs?: Record) + async get(url: string, options?: Record): any + async post(url: string, options?: Record): any + async put(url: string, options?: Record): any + async delete(url: string, options?: Record): any + async patch(url: string, options?: Record): any + async options(url: string, options?: Record): any +} diff --git a/types/api/index.d.ts b/types/api/index.d.ts new file mode 100644 index 0000000..d158c57 --- /dev/null +++ b/types/api/index.d.ts @@ -0,0 +1 @@ +export * from "./api"; diff --git a/types/index.d.ts b/types/index.d.ts index 4e6e437..6a07e33 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -1,3 +1,4 @@ +export * from "./api"; export * from "./base"; export * from "./data"; export * from "./util";