@oap75/utils
Version:
JavaScript utils for Subsocial blockchain.
9 lines (8 loc) • 581 B
TypeScript
export declare function extractVideoId(url: string): string | false;
export declare const allowEmbedList: string[];
export declare const getEmbedUrl: (url: string, embed: string | undefined) => string | undefined;
declare type SocialBrand = 'facebook' | 'twitter' | 'medium' | 'linkedIn' | 'gitHub' | 'instagram' | 'youTube' | 'reddit' | 'telegram';
export declare type LinkLabel = SocialBrand | 'website';
export declare const isSocialBrandLink: (brand: SocialBrand, link: string) => boolean;
export declare const getLinkBrand: (link: string) => LinkLabel | undefined;
export {};