@blocklet/images
Version:
support functions for blocklet image validation
13 lines (12 loc) • 595 B
TypeScript
declare function getYoutubeId(link: string): string;
declare function getVimeoId(link: string): string;
declare function getVideoId(link: string): any;
declare function getEmbedUrl(link: string, { modestbranding, controls, autoplay }?: {
modestbranding?: number;
controls?: number;
autoplay?: number;
}): any;
declare function getVideoCoverUrl(link: string): any;
declare function getVideoCheckUrl(link: string): string;
declare function isVideoUrl(link: string): boolean;
export { getVideoId, getEmbedUrl, getVideoCoverUrl, getVideoCheckUrl, getYoutubeId, getVimeoId, isVideoUrl };