How to use zen-observable-ts - 10 common examples

To help you get started, we’ve selected a few zen-observable-ts examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github apollographql / apollo-link / packages / apollo-link / src / __tests__ / link.ts View on Github external
const mock2 = new MockLink((op, forward) =>
        Observable.of({ data: op.getContext().add }),
      );
github PCreations / firechat / src / apollo-link-firebase.js View on Github external
request(operation) {
    console.log(operation);
    return new Observable(observer => {
      this.promiseWorker.postMessage(operation)
        .then(data => {
          console.log('DATA', data);
          observer.next(data);
          observer.complete();
        })
        .catch(observer.error.bind(observer));
    });
  }
}
github apollographql / apollo-link / packages / apollo-link / src / link.ts View on Github external
return new ApolloLink((operation, forward) => {
      return (
        firstLink.request(operation, op => {
          return nextLink.request(op, forward) || Observable.of();
        }) || Observable.of()
      );
    });
  }
github caioreis123 / market2 / backend2 / node_modules / apollo-link / lib / bundle.esm.js View on Github external
return (firstLink.request(operation, function (op) {
                return nextLink.request(op, forward) || Observable.of();
            }) || Observable.of());
        });
github apollographql / apollo-link / packages / apollo-link / src / link.ts View on Github external
function passthrough(op, forward) {
  return forward ? forward(op) : Observable.of();
}
github caioreis123 / market2 / backend2 / node_modules / apollo-link / lib / bundle.esm.js View on Github external
function passthrough(op, forward) {
    return forward ? forward(op) : Observable.of();
}
function toLink(handler) {
github apollographql / apollo-link / packages / apollo-link / src / link.ts View on Github external
export function execute(
  link: ApolloLink,
  operation: GraphQLRequest,
): Observable {
  return (
    link.request(
      createOperation(
        operation.context,
        transformOperation(validateOperation(operation)),
      ),
    ) || Observable.of()
  );
}
github caioreis123 / market2 / backend2 / node_modules / apollo-link / lib / bundle.esm.js View on Github external
function execute(link, operation) {
    return (link.request(createOperation(operation.context, transformOperation(validateOperation(operation)))) || Observable.of());
}

zen-observable-ts

Thin wrapper around zen-observable and @types/zen-observable, to support ESM exports as well as CommonJS exports

MIT
Latest version published 3 years ago

Package Health Score

71 / 100
Full package analysis

Popular zen-observable-ts functions

Similar packages