fx-flow v0.7.0 / pipe/strict / add
Function: add()
add(a, b)
add<
A
,B
>(a
,b
):AddReturnValue
<MaybePromise
<number
>,A
,B
>
Retures the sum of a
and b
Type parameters
• A extends MaybePromise
<number
>
• B extends MaybePromise
<number
>
Parameters
• a: A
• b: B
Returns
AddReturnValue
<MaybePromise
<number
>, A
, B
>
Example
console.log(add(1, 2)) // 3
Source
packages/core/src/pipe/strict/add.ts:39
add(a)
add<
A
,B
>(a
): (b
) =>AddReturnValue
<MaybePromise
<number
>,A
,B
>
Type parameters
• A extends MaybePromise
<number
>
• B extends MaybePromise
<number
>
Parameters
• a: A
Returns
Function
Parameters
• b: B
Returns
AddReturnValue
<MaybePromise
<number
>, A
, B
>
Source
packages/core/src/pipe/strict/add.ts:43
add(a, b)
add<
A
,B
>(a
,b
):AddReturnValue
<MaybePromise
<string
>,A
,B
>
Type parameters
• A extends MaybePromise
<string
>
• B extends MaybePromise
<string
>
Parameters
• a: A
• b: B
Returns
AddReturnValue
<MaybePromise
<string
>, A
, B
>
Source
packages/core/src/pipe/strict/add.ts:47
add(a)
add<
A
,B
>(a
): (b
) =>AddReturnValue
<MaybePromise
<string
>,A
,B
>
Type parameters
• A extends MaybePromise
<string
>
• B extends MaybePromise
<string
>
Parameters
• a: A
Returns
Function
Parameters
• b: B
Returns
AddReturnValue
<MaybePromise
<string
>, A
, B
>