Skip to content

Commit

Permalink
Merge pull request #73 from HeyHugo/bugfix/missing-namespace
Browse files Browse the repository at this point in the history
Fix missing namespace currently breaking build
  • Loading branch information
fbartho committed Feb 22, 2018
2 parents 75df172 + 862d931 commit 76a0e47
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/__tests__/restLink.ts
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ describe('Configuration', async () => {
}
`;

const { data } = await makePromise(
const { data } = await makePromise<Result>(
execute(link, {
operationName: 'postTitle',
query: postTitle,
Expand Down Expand Up @@ -1991,7 +1991,7 @@ describe('export directive', () => {
}
`;

const { data } = await makePromise(
const { data } = await makePromise<Result>(
execute(link, {
operationName: 'postTitle',
query: postTagExport,
Expand Down
2 changes: 1 addition & 1 deletion src/restLink.ts
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ const rethrowServerSideError = (
result: Promise<string>,
message: string,
) => {
const error = new Error(message) as ServerError;
const error = new Error(message) as RestLink.ServerError;

error.response = response;
error.statusCode = response.status;
Expand Down

0 comments on commit 76a0e47

Please sign in to comment.