@naturalcycles/nodejs-lib
Version:
Standard library for Node.js
12 lines (11 loc) • 432 B
TypeScript
import { Got } from 'got';
import { GetGotOptions } from './got.model';
/**
* Returns instance of Got with "reasonable defaults":
*
* 1. Error handler hook that prints helpful errors.
* 2. Hooks that log start/end of request (optional, false by default).
* 3. Reasonable defaults(tm), e.g non-infinite Timeout
* 4. Preserves error stack traces (!) (experimental!)
*/
export declare function getGot(opt?: GetGotOptions): Got;