Skip to content

Commit

Permalink
fix: 타입 업데이트
Browse files Browse the repository at this point in the history
  • Loading branch information
j-nary committed Oct 1, 2024
1 parent 4813078 commit b4aaa1c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions src/api/API_LEGACY/meeting/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,14 @@ import {
downloadMeetingMemberCSV,
getGroupBrowsingCard,
GroupBrowsingCardDetail,
GetMeetingResponse,
} from '.';

interface UseQueryGetMeetingParams {
params: {
id: string;
};
useQueryOptions?: UseQueryOptions<MeetingResponse>;
useQueryOptions?: UseQueryOptions<GetMeetingResponse>;
}

/**
Expand Down Expand Up @@ -85,10 +86,10 @@ export const useQueryMeetingListOfAll = () => {
export const useQueryGetMeeting = ({
params,
useQueryOptions,
}: UseQueryGetMeetingParams): UseQueryResult<MeetingResponse> => {
}: UseQueryGetMeetingParams): UseQueryResult<GetMeetingResponse> => {
const { id } = params;

return useQuery<MeetingResponse>({
return useQuery<GetMeetingResponse>({
queryKey: ['getMeeting', id],
queryFn: () => {
return getMeeting(id);
Expand Down
2 changes: 1 addition & 1 deletion src/api/API_LEGACY/meeting/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ export const fetchMeetingListOfAll = async ({
);
};

type GetMeetingResponse =
export type GetMeetingResponse =
paths['/meeting/v2/{meetingId}']['get']['responses']['200']['content']['application/json;charset=UTF-8'];
export const getMeeting = async (id: string): Promise<GetMeetingResponse> => {
return (await api.get<GetMeetingResponse>(`/meeting/v2/${id}`)).data;
Expand Down

0 comments on commit b4aaa1c

Please sign in to comment.