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
- Last updated: Mon, 18 Dec 2023 22:07:10 GMT
- Dependencies: @types/node, metascraper
Credits
These definitions were written by Florian Imdahl.