F95API/scripts/scrape-data/json-ld.d.ts

14 lines
411 B
TypeScript
Raw Normal View History

2021-03-05 11:27:36 +00:00
/// <reference types="cheerio" />
/**
* Represents information contained in a JSON+LD tag.
*/
export declare type TJsonLD = {
2021-03-05 12:06:09 +00:00
[s: string]: string | TJsonLD;
2021-03-05 11:27:36 +00:00
};
/**
* Extracts and processes the JSON-LD values of the page.
* @param {cheerio.Cheerio} body Page `body` selector
* @returns {TJsonLD[]} List of data obtained from the page
*/
export declare function getJSONLD(body: cheerio.Cheerio): TJsonLD;