diretto/src/store/feed.ts

9 lines
236 B
TypeScript
Raw Normal View History

2019-07-16 16:43:29 +02:00
import { FeedEvent, FeedEventData } from "./types";
import { Item } from "rss-parser";
export function toEvent(item: Item): FeedEventData {
return {
guid: item.guid || item.link || item.title || Math.random().toString(32)
};
}