Skip to content

Commit

Permalink
fix: make data argument optional #1242
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilmysliwiec committed Nov 7, 2024
1 parent 51be52c commit 4b8ca7f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/http.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export class HttpService {

post<T = any, D = any>(
url: string,
data: D,
data?: D,
config?: AxiosRequestConfig<D>,
): Observable<AxiosResponse<T, D>>;
post<T = any>(
Expand All @@ -55,7 +55,7 @@ export class HttpService {

put<T = any, D = any>(
url: string,
data: D,
data?: D,
config?: AxiosRequestConfig<D>,
): Observable<AxiosResponse<T, D>>;
put<T = any>(
Expand All @@ -68,7 +68,7 @@ export class HttpService {

patch<T = any, D = any>(
url: string,
data: D,
data?: D,
config?: AxiosRequestConfig<D>,
): Observable<AxiosResponse<T, D>>;
patch<T = any>(
Expand All @@ -81,7 +81,7 @@ export class HttpService {

postForm<T = any, D = any>(
url: string,
data: D,
data?: D,
config?: AxiosRequestConfig<D>,
): Observable<AxiosResponse<T, D>>;
postForm<T = any>(
Expand All @@ -94,7 +94,7 @@ export class HttpService {

putForm<T = any, D = any>(
url: string,
data: D,
data?: D,
config?: AxiosRequestConfig<D>,
): Observable<AxiosResponse<T, D>>;
putForm<T = any>(
Expand All @@ -107,7 +107,7 @@ export class HttpService {

patchForm<T = any, D = any>(
url: string,
data: D,
data?: D,
config?: AxiosRequestConfig<D>,
): Observable<AxiosResponse<T, D>>;
patchForm<T = any>(
Expand Down

0 comments on commit 4b8ca7f

Please sign in to comment.