From ee2f09314008a03b20cf6e307a13703168e51bf7 Mon Sep 17 00:00:00 2001 From: Ben Lesh Date: Tue, 4 Jan 2022 08:27:35 -0600 Subject: [PATCH] feat: Remove SubscribableOrPromise type. BREAKING CHANGE: `SubscribableOrPromise` is no longer an exported type, you will likely want to use `ObservableInput` instead. --- api_guard/dist/types/index.d.ts | 2 -- src/internal/types.ts | 5 ----- 2 files changed, 7 deletions(-) diff --git a/api_guard/dist/types/index.d.ts b/api_guard/dist/types/index.d.ts index 3db118bf6d..40f93bd185 100644 --- a/api_guard/dist/types/index.d.ts +++ b/api_guard/dist/types/index.d.ts @@ -648,8 +648,6 @@ export interface Subscribable { subscribe(observer: Partial>): Unsubscribable; } -export declare type SubscribableOrPromise = Subscribable | Subscribable | PromiseLike | InteropObservable; - export declare function subscribeOn(scheduler: SchedulerLike, delay?: number): MonoTypeOperatorFunction; export declare class Subscriber extends Subscription implements Observer { diff --git a/src/internal/types.ts b/src/internal/types.ts index 2b9d237606..3595ec35bb 100644 --- a/src/internal/types.ts +++ b/src/internal/types.ts @@ -73,11 +73,6 @@ export interface SubscriptionLike extends Unsubscribable { readonly closed: boolean; } -/** - * @deprecated Do not use. Most likely you want to use `ObservableInput`. Will be removed in v8. - */ -export type SubscribableOrPromise = Subscribable | Subscribable | PromiseLike | InteropObservable; - /** OBSERVABLE INTERFACES */ export interface Subscribable {