5.41.0 • Published 4 months ago

@types/metascraper v5.41.0

Weekly downloads
328
License
MIT
Repository
-
Last release
4 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.41.0

4 months ago

5.14.3

2 years ago

5.14.2

2 years ago

5.14.1

4 years ago

5.14.0

5 years ago