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

5.14.6 • Public • Published

Installation

npm install --save @types/metascraper-logo-favicon

Summary

This package contains type definitions for metascraper-logo-favicon (https://nicedoc.io/microlinkhq/metascraper/packages/metascraper-logo-favicon).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/metascraper-logo-favicon.

index.d.ts

/// <reference types="node" />

import * as http from "http";
import metascraper = require("metascraper");

declare namespace getData {
    type PickDefaultFunction = (sizes: FaviconSize[]) => FaviconSize;
    type PickFunction = (sizes: FaviconSize[], pickDefault: PickDefaultFunction) => FaviconSize;

    interface FaviconSize {
        rel?: string | undefined;
        href: string;
        sizes?: string | undefined;
        url: string;
        size: number;
    }

    interface Options {
        /** Any option provided here will passed to `got#options`. */
        gotOpts?: http.ClientRequestArgs | undefined;
        /** Truncate the value extracted to a maximum size (default: `300`). */
        pickFn?: PickFunction | undefined;
    }
}

declare function getData(options?: getData.Options): metascraper.Rules;

export = getData;

Additional Details

Credits

These definitions were written by Florian Imdahl.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/metascraper-logo-favicon

Weekly Downloads

261

Version

5.14.6

License

MIT

Unpacked Size

4.56 kB

Total Files

5

Last publish

Collaborators

  • types