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