Documents / @faasjs/test / FuncReturnType
Type alias: FuncReturnType<T>
FuncReturnType<
T
>:T
extendsFunc
<any
,any
, infer R> ?R
:any
Get the return type of a func
Example
import { useFunc, type FuncReturnType } from '@faasjs/func'
const func = useFunc(() => async () => 1)
FuncReturnType<typeof func> // => number
Type parameters
• T extends Func
<any
, any
, any
>