diff --git a/app/apis/common/get-news.ts b/app/apis/common/get-news.ts index 2960725..b0576bd 100644 --- a/app/apis/common/get-news.ts +++ b/app/apis/common/get-news.ts @@ -29,6 +29,7 @@ const dataResponseSchema = z.object({ }) export type TNewsResponse = z.infer +export type TNewsResponseData = z.infer export type TAuthorResponse = z.infer type TParameters = { categories?: string[] diff --git a/app/types/news.ts b/app/types/news.ts index 20bd3e5..ea176f6 100644 --- a/app/types/news.ts +++ b/app/types/news.ts @@ -1,7 +1,7 @@ -import type { TNewsResponse } from '~/apis/common/get-news' +import type { TNewsResponseData } from '~/apis/common/get-news' export type TNews = { title: string description: string - items: Promise<{ data: TNewsResponse[] }> + items: Promise }