FaasJS
Home
  • Guide
  • Documents
  • Starter Template
  • Changelog
  • Ecosystem

    • VS Code Plugin
    • Docker Images
  • Github
  • Contributing
  • Sponsor
  • Security
  • English
  • 简体中文
Home
  • Guide
  • Documents
  • Starter Template
  • Changelog
  • Ecosystem

    • VS Code Plugin
    • Docker Images
  • Github
  • Contributing
  • Sponsor
  • Security
  • English
  • 简体中文

Documents / @faasjs/func / FuncEventType

Type Alias: FuncEventType<T>

FuncEventType<T> = T extends Func<infer P, any, any> ? P : any

Get the event type of a func

Type Parameters

T

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 }