trending-in-one/types.ts

62 lines
811 B
TypeScript
Raw Permalink Normal View History

2020-11-29 03:11:35 +08:00
export type ZhihuVideoItem = {
target: {
title_area: {
text: string;
};
link: {
url: string;
};
};
};
export type Question = {
title: string;
url: string;
};
export type ZhihuVideoList = {
data: ZhihuVideoItem[];
};
export type ZhihuQuestionItem = {
target: {
title: string;
id: number;
};
};
export type ZhihuQuestionList = {
data: ZhihuQuestionItem[];
};
export type SearchWord = {
query: string;
display_query: string;
2020-11-29 13:03:19 +08:00
url?: string;
2020-11-29 03:11:35 +08:00
};
export type TopSearch = {
top_search: {
words: SearchWord[];
};
};
export type Word = {
title: string;
url: string;
realurl?: string;
};
export type ToutiaoTopSearch = {
data: [
{
2020-11-29 13:03:19 +08:00
words: ToutiaoWord[];
},
];
};
2020-11-29 03:11:35 +08:00
export type ToutiaoWord = {
word: string;
2020-11-29 13:03:19 +08:00
url: string;
};