From 618010fd999b0dfa861d5ffc03c07b62aff0d177 Mon Sep 17 00:00:00 2001 From: Athiqur Rahman Date: Mon, 12 Jun 2023 02:09:59 -0400 Subject: [PATCH 1/2] docs: add MonoTypeOperatorFunction documentation --- src/internal/types.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/internal/types.ts b/src/internal/types.ts index bf5f5ea01c..f42376e5b3 100644 --- a/src/internal/types.ts +++ b/src/internal/types.ts @@ -31,6 +31,12 @@ export interface OperatorFunction extends UnaryFunction, Obs export type FactoryOrValue = T | (() => T); +/** + * A function type interface that describes a function that accepts and returns a parameter of the same type. + * + * It only works with a single type of data. Input and output value must be of the same type. + * + */ export interface MonoTypeOperatorFunction extends OperatorFunction {} /** From 6ac8df1afc5fc14bc83e3c5eda35c7d2c96fbbbe Mon Sep 17 00:00:00 2001 From: "A. Rahman" <81337924+arahm730@users.noreply.github.com> Date: Fri, 16 Jun 2023 21:01:17 -0400 Subject: [PATCH 2/2] docs: update MonoTypeOperatorFunction documentation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Mladen Jakovljević --- src/internal/types.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/internal/types.ts b/src/internal/types.ts index f42376e5b3..4baa0169d6 100644 --- a/src/internal/types.ts +++ b/src/internal/types.ts @@ -34,7 +34,7 @@ export type FactoryOrValue = T | (() => T); /** * A function type interface that describes a function that accepts and returns a parameter of the same type. * - * It only works with a single type of data. Input and output value must be of the same type. + * Used to describe {@link OperatorFunction} with the only one type: `OperatorFunction`. * */ export interface MonoTypeOperatorFunction extends OperatorFunction {}