Installation
npm install --save @types/metascraper
Summary
This package contains type definitions for metascraper (https://metascraper.js.org).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/metascraper.
index.d.ts
declare namespace metascraper {
type Rule = Record<string, any>;
interface Options {
html: string;
rules?: Rule[] | undefined;
url: string;
}
}
declare function getData(options: metascraper.Options): Promise<Record<string, string>>;
declare function metascraper(rules: metascraper.Rule[]): typeof getData;
export = metascraper;
Additional Details
- Last updated: Tue, 07 Nov 2023 09:09:39 GMT
- Dependencies: none
Credits
These definitions were written by Florian Imdahl.