5.14.3 • Published 6 months ago

@types/metascraper v5.14.3

Weekly downloads
328
License
MIT
Repository
github
Last release
6 months ago

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

// Type definitions for metascraper 5.14
// Project: https://metascraper.js.org
// Definitions by: Florian Imdahl <https://github.com/ffflorian>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

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: Thu, 08 Jul 2021 18:50:43 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by Florian Imdahl.

5.14.3

6 months ago

5.14.2

7 months ago

5.14.1

3 years ago

5.14.0

4 years ago