Skip to content

Commit

Permalink
docs: add MonoTypeOperatorFunction documentation (ReactiveX#7284)
Browse files Browse the repository at this point in the history
* docs: add MonoTypeOperatorFunction documentation

* docs: update MonoTypeOperatorFunction documentation

Co-authored-by: Mladen Jakovljević <jakovljevic.mladen@gmail.com>

---------

Co-authored-by: Mladen Jakovljević <jakovljevic.mladen@gmail.com>
  • Loading branch information
arahm730 and jakovljevic-mladen authored Jun 19, 2023
1 parent 870ab4d commit 0fe6b2f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/internal/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ export interface OperatorFunction<T, R> extends UnaryFunction<Observable<T>, Obs

export type FactoryOrValue<T> = T | (() => T);

/**
* A function type interface that describes a function that accepts and returns a parameter of the same type.
*
* Used to describe {@link OperatorFunction} with the only one type: `OperatorFunction<T, T>`.
*
*/
export interface MonoTypeOperatorFunction<T> extends OperatorFunction<T, T> {}

/**
Expand Down

0 comments on commit 0fe6b2f

Please sign in to comment.