diff --git a/lib/typedefs.d.ts b/lib/typedefs.d.ts index 9f47ed5..d4973a0 100644 --- a/lib/typedefs.d.ts +++ b/lib/typedefs.d.ts @@ -42,10 +42,13 @@ declare class Gofer { } declare namespace Gofer { - export function fetch(path: string, opts?: Gofer.FetchOpts): FetchResponse; + export function fetch( + path: string, + opts?: Gofer.FetchOpts & { pathParams?: { [param: string]: string } } + ): FetchResponse; export type Opts = { - pathParams?: { [param: string]: string }; + pathParams?: { [param: string]: string | undefined }; timeout?: number; connectTimeout?: number; searchDomain?: string;