onrails
GitHub
npm
Preparing search index...
@onrails/result
railway
select
Function select
select
<
C
extends
object
,
T
>
(
fn
:
(
ctx
:
C
)
=>
T
,
)
:
<
E
,
M
extends
RailwayMode
>
(
workflow
:
Railway
<
C
,
E
,
M
>
,
)
=>
RailwayOutput
<
T
,
E
,
M
>
Reusable wrapper around
Railway.select
— projects the final context into the workflow's output type.
Type Parameters
C
extends
object
T
Parameters
fn
:
(
ctx
:
C
)
=>
T
Returns
<
E
,
M
extends
RailwayMode
>
(
workflow
:
Railway
<
C
,
E
,
M
>
)
=>
RailwayOutput
<
T
,
E
,
M
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
GitHub
npm
onrails
Loading...
Reusable wrapper around Railway.select — projects the final context into the workflow's output type.