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