Skip to content

Commit

Permalink
fix: fetchAPI 반환 타입 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
jw-r committed Apr 23, 2024
1 parent 867ff82 commit 43c955a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/apis/fetch-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ interface FetchAPIParams {

const DEFAULT_REVALIDATE = 0

export const fetchAPI = async <T extends Response>(params: FetchAPIParams): Promise<T> => {
export const fetchAPI = async <T = unknown>(params: FetchAPIParams): Promise<T> => {
const { url, options } = params
const query = QS.stringify(options?.queryOptions?.query ?? {}, options?.queryOptions?.options)
const urlWithQuery = query ? `${url}?${query}` : url
Expand Down

0 comments on commit 43c955a

Please sign in to comment.