Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
constructor(options = {} as ApolloOfflineClientOptions) {
Object.assign(this, options);
this.cacheStorage = options.cacheStorage || createDefaultCacheStorage();
this.offlineStorage = options.offlineStorage || createDefaultOfflineStorage();
this.conflictStrategy = options.conflictStrategy || UseClient;
this.conflictProvider = options.conflictProvider || new VersionedState();
this.link = createDefaultLink(this);
}
}