diff --git a/types/api/api.d.ts b/types/api/api.d.ts new file mode 100644 index 0000000..062cd24 --- /dev/null +++ b/types/api/api.d.ts @@ -0,0 +1,9 @@ +export declare class API { + constructor(kwargs?: Record) + get(url: string, options?: Record): unknown + post(url: string, options?: Record): unknown + put(url: string, options?: Record): unknown + delete(url: string, options?: Record): unknown + patch(url: string, options?: Record): unknown + options(url: string, options?: Record): unknown +} 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";