21 lines
No EOL
379 B
TypeScript
21 lines
No EOL
379 B
TypeScript
export interface Source {
|
|
id: string | null;
|
|
name: string;
|
|
}
|
|
|
|
export interface Article {
|
|
source: Source;
|
|
author: string;
|
|
title: string;
|
|
description: string;
|
|
url: string;
|
|
urlToImage: string;
|
|
publishedAt: string;
|
|
content: string;
|
|
}
|
|
|
|
export interface NewsResponse {
|
|
status: string;
|
|
totalResults: number;
|
|
articles: Article[];
|
|
} |