UNPKG

@ormoshe/js-video-url-parser

Version:

A parser to extract provider, video id, starttime and others from YouTube, Vimeo, ... urls

16 lines (11 loc) 392 B
import { VideoInfo } from '../urlParser'; export interface TwitchUrlParameters { [key: string]: any; start?: number; } export type TwitchMediaTypes = 'stream' | 'video' | 'clip'; export interface TwitchVideoInfo extends VideoInfo<TwitchUrlParameters, TwitchMediaTypes> { provider: 'twitch'; channel?: string; } export type TwitchParseResult = TwitchVideoInfo | undefined;