5.14.6 • Published 5 months ago

@types/metascraper-logo-favicon v5.14.6

Weekly downloads
338
License
MIT
Repository
github
Last release
5 months ago

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

// Type definitions for metascraper-logo-favicon 5.14
// Project: https://nicedoc.io/microlinkhq/metascraper/packages/metascraper-logo-favicon
// Definitions by: Florian Imdahl <https://github.com/ffflorian>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 3.5

/// <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.Rule;

export = getData;

Additional Details

Credits

These definitions were written by Florian Imdahl.

5.14.6

5 months ago

5.14.5

5 months ago

5.14.4

6 months ago

5.14.3

7 months ago

5.14.2

8 months ago

5.14.1

3 years ago

5.14.0

4 years ago