From 83cd86c9a60edfb5d022b59e69fbf5466a9268b7 Mon Sep 17 00:00:00 2001 From: Jeremy Wells Date: Mon, 31 Oct 2022 18:36:06 -0400 Subject: [PATCH] chore(repeatWhen): update api guard types --- api_guard/dist/types/index.d.ts | 5 +++++ api_guard/dist/types/operators/index.d.ts | 5 +++++ src/internal/operators/repeatWhen.ts | 2 +- 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/api_guard/dist/types/index.d.ts b/api_guard/dist/types/index.d.ts index 3f930cf2b8e..ea785df0970 100644 --- a/api_guard/dist/types/index.d.ts +++ b/api_guard/dist/types/index.d.ts @@ -577,6 +577,11 @@ export declare function refCount(): MonoTypeOperatorFunction; export declare function repeat(countOrConfig?: number | RepeatConfig): MonoTypeOperatorFunction; +export interface RepeatConfig { + count?: number; + delay?: number | ((count: number) => ObservableInput); +} + export declare function repeatWhen(notifier: (notifications: Observable) => ObservableInput): MonoTypeOperatorFunction; export declare class ReplaySubject extends Subject { diff --git a/api_guard/dist/types/operators/index.d.ts b/api_guard/dist/types/operators/index.d.ts index 36d1c6de49f..c8b58f30e21 100644 --- a/api_guard/dist/types/operators/index.d.ts +++ b/api_guard/dist/types/operators/index.d.ts @@ -231,6 +231,11 @@ export declare function refCount(): MonoTypeOperatorFunction; export declare function repeat(countOrConfig?: number | RepeatConfig): MonoTypeOperatorFunction; +export interface RepeatConfig { + count?: number; + delay?: number | ((count: number) => ObservableInput); +} + export declare function repeatWhen(notifier: (notifications: Observable) => ObservableInput): MonoTypeOperatorFunction; export declare function retry(count?: number): MonoTypeOperatorFunction; diff --git a/src/internal/operators/repeatWhen.ts b/src/internal/operators/repeatWhen.ts index 46934e67d1d..5e55ca07f49 100644 --- a/src/internal/operators/repeatWhen.ts +++ b/src/internal/operators/repeatWhen.ts @@ -34,7 +34,7 @@ import { createOperatorSubscriber } from './OperatorSubscriber'; * @see {@link retry} * @see {@link retryWhen} * - * @param notifier function that receives an Observable of notifications with + * @param notifier Function that receives an Observable of notifications with * which a user can `complete` or `error`, aborting the repetition. * @return A function that returns an `ObservableInput` that mirrors the source * Observable with the exception of a `complete`.