Skip to content
This repository has been archived by the owner on Apr 17, 2023. It is now read-only.

Commit

Permalink
fix: API change
Browse files Browse the repository at this point in the history
  • Loading branch information
wtrocki authored and Dara Hayes committed Oct 4, 2019
1 parent ad2b8ec commit d32a360
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/sync/src/DataSyncClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@ import { OfflineClient, ApolloOfflineClient } from "offix-client";
* ```
*/
export const createClient = async (userConfig: DataSyncConfig):
Promise<ApolloOfflineClient> => {
Promise<OfflineClient> => {
const offlineClient = new OfflineClient(userConfig);
const terminatingLink = await createDefaultLink(offlineClient.config);
offlineClient.config.terminatingLink = terminatingLink;
return offlineClient.init();
await offlineClient.init();
return offlineClient;
};

0 comments on commit d32a360

Please sign in to comment.