Skip to main content

isRSSFeedProps

Stentor API Reference


Stentor API Reference / stentor-media/src / isRSSFeedProps

Function: isRSSFeedProps()

isRSSFeedProps(props): props is RSSFeedProps<RSSFeedItemPlayableMedia>

Defined in: packages/stentor-media/src/Guards.ts:120

Type guard to determine if the props are for an RSSFeed.

Parameters​

props​

PlayableMedia[] | RSSFeedProps<RSSFeedItemPlayableMedia> | RSSFeed<RSSFeedItemPlayableMedia> | MediaPlaylist<PlayableMedia> | MediaPlaylistProps<PlayableMedia> | Playlist<Playable> | PlaylistProps<Playable>

Returns​

props is RSSFeedProps<RSSFeedItemPlayableMedia>