Skip to content

Commit

Permalink
chore(feed-entry): improve types for enclosure property
Browse files Browse the repository at this point in the history
  • Loading branch information
EdricChan03 committed Feb 13, 2020
1 parent 53f3f68 commit 71cd1f8
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion projects/rss-reader/src/app/models/feed-entry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,11 @@ export interface FeedEntry {
*/
description?: string;
content?: string;
enclosure?: any;
enclosure?: {
link?: string;
length?: number;
type?: string;
} | {
[key: string]: string;
};
}

0 comments on commit 71cd1f8

Please sign in to comment.