5.14.6 • Published 5 months ago
@types/metascraper-logo-favicon v5.14.6
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
- Last updated: Thu, 08 Jul 2021 18:50:44 GMT
- Dependencies: @types/metascraper, @types/node
- Global values: none
Credits
These definitions were written by Florian Imdahl.