Socket
Socket
Sign inDemoInstall

zen-observable-ts

Package Overview
Dependencies
2
Maintainers
2
Versions
40
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    zen-observable-ts

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


Version published
Weekly downloads
4.7M
decreased by-1.9%
Maintainers
2
Install size
104 kB
Created
Weekly downloads
 

Readme

Source

zen-observable-ts

Thin wrapper around zen-observable and @types/zen-observable, to support ESM exports as well as CommonJS exports, with TypeScript types provided by @types/zen-observable.

Usage

After installing zen-observable-ts using a tool like npm or yarn, you can import the Observable class by name:

import { Observable } from "zen-observable-ts";

Note that this package does not currently have a default export, so the {} braces are mandatory.

Previous versions

This tiny wrapper package replaces an older version of zen-observable-ts that used to provide TypeScript types for zen-observable, before @types/zen-observable was introduced. This version of the package is not intended to be perfectly compatible with the older version, so we have bumped the major version of the package to reflect the difference.

Future plans

As explained in https://github.com/apollographql/apollo-client/pull/7615, the zen-observable-ts package exists to fill a gap in the functionality of the zen-observable package, so we will retire this package in favor of using zen-observable directly, when/if this PR is ever merged.

FAQs

Last updated on 09 Jul 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc