diff --git a/source/index.ts b/source/index.ts index 47c63edfb..b515f5390 100644 --- a/source/index.ts +++ b/source/index.ts @@ -64,3 +64,38 @@ export default got; // For CommonJS default export support module.exports = got; module.exports.default = got; + +// Export types +export * from './utils/types'; +export { + Got, + GotStream, + ReturnResponse, + ReturnStream, + GotReturn +} from './create'; +export { + ProxyStream as ResponseStream +} from './as-stream'; +export { + GotError, + CacheError, + RequestError, + ParseError, + HTTPError, + MaxRedirectsError, + UnsupportedProtocolError, + TimeoutError, + CancelError +} from './errors'; +export { + InitHook, + BeforeRequestHook, + BeforeRedirectHook, + BeforeRetryHook, + BeforeErrorHook, + AfterResponseHook, + HookType, + Hooks, + HookEvent +} from './known-hook-events';