Feed type, first approach.
This commit is contained in:
@ -1 +1,18 @@
|
|||||||
// Aquí exportaré las interfaces que vaya a necesitas: las básicas, dtos, enums, etc.
|
export enum NewsSource {
|
||||||
|
EL_PAIS = 'El País',
|
||||||
|
EL_MUNDO = 'El Mundo',
|
||||||
|
MANUAL = 'Manual'
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface IFeed {
|
||||||
|
_id?: string;
|
||||||
|
title: string;
|
||||||
|
description: string;
|
||||||
|
url: string;
|
||||||
|
source: NewsSource;
|
||||||
|
publishedAt: Date;
|
||||||
|
imageUrl?: string;
|
||||||
|
category?: string;
|
||||||
|
createdAt?: Date;
|
||||||
|
updatedAt?: Date;
|
||||||
|
}
|
||||||
|
Reference in New Issue
Block a user