Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

micro-observables

Package Overview
Dependencies
Maintainers
1
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

micro-observables - npm Package Compare versions

Comparing version 1.4.0-rc1 to 1.4.0-rc2

4

lib/observable.d.ts
export declare type Listener<T> = (val: T, prevVal: T) => void;
export declare type Unsubscriber = () => void;
export declare type ObservableValue<T> = T extends Observable<infer U> ? U : T;
export declare type ObservableValue<T> = T extends Observable<infer U> ? U : never;
export declare type ObservableValues<T> = {

@@ -38,3 +38,3 @@ [K in keyof T]: ObservableValue<T[K]>;

static merge<T>(observables: Observable<T>[]): Observable<T[]>;
static latest<T>(...observables: Observable<T>[]): Observable<T>;
static latest<T extends Observable<any>[]>(...observables: T): Observable<ObservableValues<T>[number]>;
static fromPromise<T, E = undefined>(promise: Promise<T>, onError?: (error: any) => E): Observable<T | E | undefined>;

@@ -41,0 +41,0 @@ toPromise(): Promise<T>;

{
"name": "micro-observables",
"version": "1.4.0-rc1",
"version": "1.4.0-rc2",
"description": "",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc