Skip to content

Commit aa0829f

Browse files
committed
feat!: private LastOperatorReturn type
1 parent f840db3 commit aa0829f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

async/mod.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
export type AsyncOperator<A, B> = (v: A) => B | Promise<B>;
55

66
/**
7-
* Get the return type of the last operator in a list of operators.
7+
* @internal
88
*/
99
type LastAsyncOperatorReturn<
1010
T extends AsyncOperator<unknown, unknown>[],

mod.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
export type Operator<A, B> = (v: A) => B;
55

66
/**
7-
* Get the return type of the last operator in a list of operators.
7+
* @internal
88
*/
9-
export type LastOperatorReturn<T extends Operator<unknown, unknown>[]> =
10-
T extends [...Operator<unknown, unknown>[], Operator<unknown, infer R>] ? R
11-
: never;
9+
type LastOperatorReturn<T extends Operator<unknown, unknown>[]> = T extends
10+
[...Operator<unknown, unknown>[], Operator<unknown, infer R>] ? R
11+
: never;
1212

1313
/**
1414
* Pipes a value through a series of operator functions.

0 commit comments

Comments
 (0)