mark the observable types public

Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
Fredrik Adelöw
2021-10-21 09:52:17 +02:00
parent 41c49884d2
commit db58c2e879
2 changed files with 6 additions and 6 deletions
-6
View File
@@ -17,8 +17,6 @@ export type JsonPrimitive = number | string | boolean | null;
// @public
export type JsonValue = JsonObject | JsonArray | JsonPrimitive;
// Warning: (ae-missing-release-tag) "Observable" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
//
// @public
export type Observable<T> = {
[Symbol.observable](): Observable<T>;
@@ -30,8 +28,6 @@ export type Observable<T> = {
): Subscription;
};
// Warning: (ae-missing-release-tag) "Observer" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
//
// @public
export type Observer<T> = {
next?(value: T): void;
@@ -39,8 +35,6 @@ export type Observer<T> = {
complete?(): void;
};
// Warning: (ae-missing-release-tag) "Subscription" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
//
// @public
export type Subscription = {
unsubscribe(): void;
+6
View File
@@ -16,6 +16,8 @@
/**
* Observer interface for consuming an Observer, see TC39.
*
* @public
*/
export type Observer<T> = {
next?(value: T): void;
@@ -25,6 +27,8 @@ export type Observer<T> = {
/**
* Subscription returned when subscribing to an Observable, see TC39.
*
* @public
*/
export type Subscription = {
/**
@@ -53,6 +57,8 @@ declare global {
*
* This is used as a common return type for observable values and can be created
* using many different observable implementations, such as zen-observable or RxJS 5.
*
* @public
*/
export type Observable<T> = {
[Symbol.observable](): Observable<T>;