diff --git a/README.md b/README.md index 2d25e07..16b5fdc 100644 --- a/README.md +++ b/README.md @@ -55,7 +55,7 @@ interface User { email: string; } -ApiKitClient.get('/users') +ApiKitClient.get('/users') .then(response => console.log(response.data)) // Expected to be of type User[] .catch(error => console.error(error)); ``` diff --git a/src/ApiKitClient.ts b/src/ApiKitClient.ts index 2302a80..5030bc4 100644 --- a/src/ApiKitClient.ts +++ b/src/ApiKitClient.ts @@ -41,9 +41,9 @@ export class ApiKitClient { } } - public static async get(endpoint: string, params?: URLSearchParams): Promise> { + public static async get(endpoint: string, params?: URLSearchParams): Promise> { this.checkInitialization(); - return this.instance!.get(endpoint, { params }); + return this.instance!.get(endpoint, { params }); } public static async getOne(endpoint: string, params?: URLSearchParams): Promise> { @@ -71,7 +71,7 @@ export class ApiKitClient { return this.instance!.patch(endpoint, data); } - public static async delete(endpoint: string): Promise> { + public static async delete(endpoint: string): Promise { this.checkInitialization(); return this.instance!.delete(endpoint); }