BreaKSooN05
Kilopat
- Katılım
- 17 Şubat 2019
- Mesajlar
- 3.583
- Çözümler
- 18
Şöyle bir types. TS dosyası oluşturdum.
Kullandığım API ise; News API – Search News and Blog Articles on the Web
Hata aldığım nokta fotoğrafta gözükmemiş ama article type'inden dolayı hata alıyorum.
JavaScript:
export interface Article {
status: string;
totalResults: number;
articles: Article[];
}
export interface NewsType {
source: Source;
author: string;
title: string;
description: string;
url: string;
urlToImage: string;
publishedAt: Date;
content: string;
}
export interface Source {
id: string;
name: string;
}
Kullandığım API ise; News API – Search News and Blog Articles on the Web
Hata aldığım nokta fotoğrafta gözükmemiş ama article type'inden dolayı hata alıyorum.
Son düzenleyen: Moderatör: