mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* Add type definitions for request-as-curl * Fix TypeScript version in comment * Add correct project URL
16 lines
618 B
TypeScript
16 lines
618 B
TypeScript
// Type definitions for request-as-curl 0.1
|
|
// Project: https://github.com/azproduction/node-request-as-curl
|
|
// Definitions by: Arne Schubert <https://github.com/atd-schubert>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
// TypeScript Version: 2.3
|
|
|
|
import { CoreOptions, Request, RequestAPI, RequiredUriUrl } from "request";
|
|
|
|
export = request_as_curl;
|
|
|
|
declare function request_as_curl(request: RequestAPI<Request, CoreOptions, RequiredUriUrl>, body?: any): string;
|
|
|
|
declare namespace request_as_curl {
|
|
function serialize(request: RequestAPI<Request, CoreOptions, RequiredUriUrl>): string;
|
|
}
|