Socket
Socket
Sign inDemoInstall

@types/metaget

Package Overview
Dependencies
0
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/metaget

TypeScript definitions for metaget


Version published
Maintainers
1
Weekly downloads
603
increased by11.05%
Install size
4.64 kB

Weekly downloads

Readme

Source

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.

FAQs

Last updated on 08 Jul 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc