Skip to content

Commit

Permalink
Stronger type definition
Browse files Browse the repository at this point in the history
  • Loading branch information
joao-conde committed Jan 8, 2021
1 parent 86f9d4a commit 12af79d
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions types/api/api.d.ts
@@ -1,9 +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
constructor(kwargs?: Record<string, unknown>)
async get(url: string, options?: Record<string, unknown>): any
async post(url: string, options?: Record<string, unknown>): any
async put(url: string, options?: Record<string, unknown>): any
async delete(url: string, options?: Record<string, unknown>): any
async patch(url: string, options?: Record<string, unknown>): any
async options(url: string, options?: Record<string, unknown>): any
}

0 comments on commit 12af79d

Please sign in to comment.