1.0.3 • Published 6 months ago

@types/metaget v1.0.3

Weekly downloads
17
License
MIT
Repository
github
Last release
6 months ago

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

// Type definitions for metaget 1.0
// Project: https://github.com/mrvautin/metaget#readme
// Definitions by: Florian Imdahl <https://github.com/ffflorian>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

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: Thu, 08 Jul 2021 18:50:43 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by Florian Imdahl.

1.0.2

7 months ago

1.0.3

6 months ago

1.0.1

3 years ago

1.0.0

4 years ago