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

1.5.3 • Public • Published

Installation

npm install --save @types/minimal-request-promise

Summary

This package contains type definitions for minimal-request-promise (https://github.com/gojko/minimal-request-promise).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/minimal-request-promise.

index.d.ts

/// <reference types="node" />

import * as http from "http";

interface MinimalRequestPromiseResponse {
    headers: http.IncomingHttpHeaders[];
    body: string;
    statusCode: number;
    statusMessage: string;
}

declare function minimalRequestPromise(
    callOptions: http.RequestOptions,
    PromiseImplementation?: PromiseConstructor,
): Promise<MinimalRequestPromiseResponse>;
declare namespace minimalRequestPromise {
    export function get(
        url: string,
        additionalOptions?: http.RequestOptions,
        PromiseImplementation?: PromiseConstructor,
    ): Promise<MinimalRequestPromiseResponse>;
    export function post(
        url: string,
        additionalOptions: http.RequestOptions,
        PromiseImplementation?: PromiseConstructor,
    ): Promise<MinimalRequestPromiseResponse>;
    export function put(
        url: string,
        additionalOptions: http.RequestOptions,
        PromiseImplementation?: PromiseConstructor,
    ): Promise<MinimalRequestPromiseResponse>;
    function del(
        url: string,
        additionalOptions?: http.RequestOptions,
        PromiseImplementation?: PromiseConstructor,
    ): Promise<MinimalRequestPromiseResponse>;
    export { del as delete };
}

export = minimalRequestPromise;

Additional Details

  • Last updated: Tue, 07 Nov 2023 09:09:39 GMT
  • Dependencies: @types/node

Credits

These definitions were written by Slobodan Stojanovic.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/minimal-request-promise

Weekly Downloads

6

Version

1.5.3

License

MIT

Unpacked Size

5.28 kB

Total Files

5

Last publish

Collaborators

  • types