Installation
npm install --save @types/page-icon
Summary
This package contains type definitions for page-icon (https://github.com/jiahaog/page-icon).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/page-icon.
index.d.ts
/// <reference types="node" />
declare namespace PageIcon {
interface Icon {
source: string;
name: string;
data: Buffer;
size: number;
ext: string;
mime: string;
}
interface FetchOptions {
ext?: string | undefined;
}
}
declare module "page-icon" {
const mod: (url: string, opts?: PageIcon.FetchOptions) => Promise<PageIcon.Icon>;
export = mod;
}
Additional Details
- Last updated: Tue, 07 Nov 2023 0939 GMT
- Dependencies: @types/node
Credits
These definitions were written by rhysd.