diff --git a/src/internal/Observable.ts b/src/internal/Observable.ts index d9e8f0c0d5..6c349180f1 100644 --- a/src/internal/Observable.ts +++ b/src/internal/Observable.ts @@ -49,6 +49,7 @@ export class Observable implements Subscribable { * @param {Function} subscribe? the subscriber function to be passed to the Observable constructor * @return {Observable} a new cold observable * @nocollapse + * @deprecated use new Observable() instead */ static create: Function = (subscribe?: (subscriber: Subscriber) => TeardownLogic) => { return new Observable(subscribe); diff --git a/src/internal/Subject.ts b/src/internal/Subject.ts index 4ce87298b3..dce6bc8aa2 100644 --- a/src/internal/Subject.ts +++ b/src/internal/Subject.ts @@ -39,7 +39,9 @@ export class Subject extends Observable implements SubscriptionLike { super(); } - /**@nocollapse */ + /**@nocollapse + * @deprecated use new Subject() instead + */ static create: Function = (destination: Observer, source: Observable): AnonymousSubject => { return new AnonymousSubject(destination, source); }