How to use the zen-observable-ts.of function in zen-observable-ts

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 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