Skip to content

Commit

Permalink
Merge pull request #108 from groupon/dbushong/feature/master/optional…
Browse files Browse the repository at this point in the history
…-path-params

optional path params
  • Loading branch information
dbushong committed Oct 24, 2019
2 parents b4caf80 + de401c7 commit 8391ee7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
7 changes: 5 additions & 2 deletions lib/typedefs.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8391ee7

Please sign in to comment.