-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from jsr-core/compose
feat: Add `compose` function for composing multiple operators
- Loading branch information
Showing
17 changed files
with
2,294 additions
and
978 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import type { Operator } from "./operator.ts"; | ||
|
||
/** | ||
* @internal | ||
*/ | ||
export type LastOperatorReturn<T extends Operator<unknown, unknown>[]> = | ||
T extends [...Operator<unknown, unknown>[], Operator<unknown, infer R>] ? R | ||
: never; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import type { AsyncOperator } from "./operator.ts"; | ||
|
||
/** | ||
* @internal | ||
*/ | ||
export type LastAsyncOperatorReturn< | ||
T extends AsyncOperator<unknown, unknown>[], | ||
> = T extends | ||
[...AsyncOperator<unknown, unknown>[], AsyncOperator<unknown, infer R>] ? R | ||
: never; |
Oops, something went wrong.