@types/metascraper
TypeScript icon, indicating that this package has built-in type declarations

5.14.3 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/metascraper

Weekly Downloads

1,884

Version

5.14.3

License

MIT

Unpacked Size

3.28 kB

Total Files

5

Last publish

Collaborators

  • types