Skip to content

Commit c85ca73

Browse files
authored
Merge pull request #10 from Romarionijim/feat/refine-access
refactor: remove public access modifier
2 parents 0e7d0c3 + f62b3d8 commit c85ca73

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

infra/api/apiClient/ApiClient.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,32 +6,32 @@ export class ApiClient {
66
this.request = request;
77
}
88

9-
public async get<T>(url: string, options: ApiOptionalParams<T> = {}) {
9+
async get<T>(url: string, options: ApiOptionalParams<T> = {}) {
1010
let response = await this.makeRequest(RequestMethod.GET, url, options)
1111
return response;
1212
}
1313

14-
public async post<T>(url: string, options: ApiOptionalParams<T> = {}) {
14+
async post<T>(url: string, options: ApiOptionalParams<T> = {}) {
1515
let response = await this.makeRequest(RequestMethod.POST, url, options)
1616
return response;
1717
}
1818

19-
public async put<T>(url: string, options: ApiOptionalParams<T> = {}) {
19+
async put<T>(url: string, options: ApiOptionalParams<T> = {}) {
2020
let response = await this.makeRequest(RequestMethod.PUT, url, options)
2121
return response;
2222
}
2323

24-
public async patch<T>(url: string, options: ApiOptionalParams<T> = {}) {
24+
async patch<T>(url: string, options: ApiOptionalParams<T> = {}) {
2525
let response = await this.makeRequest(RequestMethod.PATCH, url, options)
2626
return response;
2727
}
2828

29-
public async delete<T>(url: string, options: ApiOptionalParams<T> = {}) {
29+
async delete<T>(url: string, options: ApiOptionalParams<T> = {}) {
3030
let response = await this.makeRequest(RequestMethod.DELETE, url, options)
3131
return response;
3232
}
3333

34-
public async paginateRequest<T>(
34+
async paginateRequest<T>(
3535
method: RequestMethod,
3636
url: string,
3737
paginationType: PaginationType,

0 commit comments

Comments
 (0)