Skip to content

Commit

Permalink
chore(repeatWhen): update api guard types
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremymwells committed Nov 1, 2022
1 parent ec88d10 commit 83cd86c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
5 changes: 5 additions & 0 deletions api_guard/dist/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -577,6 +577,11 @@ export declare function refCount<T>(): MonoTypeOperatorFunction<T>;

export declare function repeat<T>(countOrConfig?: number | RepeatConfig): MonoTypeOperatorFunction<T>;

export interface RepeatConfig {
count?: number;
delay?: number | ((count: number) => ObservableInput<any>);
}

export declare function repeatWhen<T>(notifier: (notifications: Observable<void>) => ObservableInput<any>): MonoTypeOperatorFunction<T>;

export declare class ReplaySubject<T> extends Subject<T> {
Expand Down
5 changes: 5 additions & 0 deletions api_guard/dist/types/operators/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,11 @@ export declare function refCount<T>(): MonoTypeOperatorFunction<T>;

export declare function repeat<T>(countOrConfig?: number | RepeatConfig): MonoTypeOperatorFunction<T>;

export interface RepeatConfig {
count?: number;
delay?: number | ((count: number) => ObservableInput<any>);
}

export declare function repeatWhen<T>(notifier: (notifications: Observable<void>) => ObservableInput<any>): MonoTypeOperatorFunction<T>;

export declare function retry<T>(count?: number): MonoTypeOperatorFunction<T>;
Expand Down
2 changes: 1 addition & 1 deletion src/internal/operators/repeatWhen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand Down

0 comments on commit 83cd86c

Please sign in to comment.