Skip to content

Commit

Permalink
Fix typescript destructuring error, apollographql#189
Browse files Browse the repository at this point in the history
  • Loading branch information
doomsower committed Dec 6, 2017
1 parent 0202b7f commit 1e41090
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions packages/apollo-link-http/src/httpLink.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,14 +164,13 @@ const defaultHttpOptions = {
includeExtensions: false,
};

export const createHttpLink = (
{
export const createHttpLink = (linkOptions: HttpLink.Options = {}) => {
let {
uri,
fetch: fetcher,
includeExtensions,
...requestOptions,
}: HttpLink.Options = {},
) => {
...requestOptions
} = linkOptions;
// dev warnings to ensure fetch is present
warnIfNoFetch(fetcher);
if (fetcher) checkFetcher(fetcher);
Expand Down

0 comments on commit 1e41090

Please sign in to comment.