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

1.0.3 • Public • Published

Installation

npm install --save @types/metaget

Summary

This package contains type definitions for metaget (https://github.com/mrvautin/metaget#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/metaget.

index.d.ts

export interface Options {
    headers?: Record<string, any> | undefined;
    timeout?: number | undefined;
}

export type Result = Record<string, string>;

export type Callback<T> = (error: Error | null, data: Result) => T;

export function fetch<T>(uri: string, userArgs: Options, callback: Callback<T>): Promise<T>;
export function fetch<T>(uri: string, callback: Callback<T>): Promise<T>;
export function fetch(uri: string, userArgs?: Options): Promise<Result>;

Additional Details

  • Last updated: Tue, 07 Nov 2023 09:09:39 GMT
  • Dependencies: none

Credits

These definitions were written by Florian Imdahl.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/metaget

Weekly Downloads

405

Version

1.0.3

License

MIT

Unpacked Size

3.46 kB

Total Files

5

Last publish

Collaborators

  • types