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.