UNPKG

@zendesk/laika

Version:

Test, mock, intercept and modify Apollo Client's operations — in both browser and unit tests!

9 lines (8 loc) 383 B
import { ApolloLink } from '@apollo/client/core'; /** * Creates a lazy-loadable Apollo Link. * Useful when you want to use a given Apollo Link in a production environment conditionally, * i.e. only load it when necessary. * @param linkPromise A Promise to an Apollo Link to wrap. */ export declare const createLazyLoadableLink: (linkPromise: Promise<ApolloLink>) => ApolloLink;