@types/file-fetch
TypeScript icon, indicating that this package has built-in type declarations

1.6.6 • Public • Published

Installation

npm install --save @types/file-fetch

Summary

This package contains type definitions for file-fetch (https://github.com/bergos/file-fetch).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/file-fetch.

index.d.ts

import { Headers } from "node-fetch";

interface FileFetchOptions {
    baseDir?: string | undefined;
    baseURL?: string | undefined;
}

type Fetch = typeof fetch;

interface FileFetch extends Fetch {
    create(opts?: FileFetchOptions): FileFetch;
    Headers: typeof Headers;
}

declare const fileFetch: FileFetch;

export = fileFetch;

Additional Details

Credits

These definitions were written by tpluscode.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/file-fetch

Weekly Downloads

34

Version

1.6.6

License

MIT

Unpacked Size

3.31 kB

Total Files

5

Last publish

Collaborators

  • types