@devmehq/open-graph-extractor
Version:
Extract Open Graph and Twitter Card info off from html
44 lines (43 loc) • 964 B
TypeScript
/// <reference types="cheerio" />
import Selector = cheerio.Selector;
declare type OgImage = {
url: string;
type: string;
width?: string;
height?: string;
};
export declare function fallback(ogObject: {
ogTitle?: any;
ogDescription?: any;
ogImage?: OgImage[] | OgImage;
ogAudioURL?: any;
ogAudioSecureURL?: any;
ogAudioType?: any;
ogLocale?: any;
ogLogo?: any;
ogUrl?: any;
ogDate?: any;
favicon?: any;
}, options: {
allMedia?: boolean;
ogImageFallback?: boolean;
customMetaTags?: ConcatArray<{
multiple: boolean;
property: string;
fieldName: string;
}>;
onlyGetOpenGraphInfo?: any;
}, $: Selector): {
ogTitle?: any;
ogDescription?: any;
ogImage?: OgImage[] | OgImage;
ogAudioURL?: any;
ogAudioSecureURL?: any;
ogAudioType?: any;
ogLocale?: any;
ogLogo?: any;
ogUrl?: any;
ogDate?: any;
favicon?: any;
};
export {};