From 89982c5db8267f72391249d85502f54e07bd77bc Mon Sep 17 00:00:00 2001 From: Tim Jacobi Date: Sun, 26 Feb 2017 14:35:14 +0000 Subject: [PATCH] allow to pass custom request function One problem currently arises from this: Most methods return a Request object since nano uses the request module by default. Will leave it for now since using a custom request function isn't too common. --- nano/index.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/nano/index.d.ts b/nano/index.d.ts index 31fbc307b4..deb453bb98 100644 --- a/nano/index.d.ts +++ b/nano/index.d.ts @@ -16,6 +16,7 @@ declare module "nano" { requestDefaults?: CoreOptions log?(id: string, args: any): void parseUrl?: boolean + request?: Function } interface Callback {