UNPKG

377 BTypeScriptView Raw
1import { Got } from 'got';
2import { GetGotOptions } from './got.model';
3/**
4 * Returns instance of Got with "reasonable defaults":
5 *
6 * 1. Error handler hook that prints helpful errors.
7 * 2. Hooks that log start/end of request (optional, false by default).
8 * 3. Reasonable defaults(tm), e.g non-infinite Timeout
9 */
10export declare function getGot(opt?: GetGotOptions): Got;