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/react / FaasData

Type Alias: FaasData<T>

FaasData<T> = T extends FaasActionPaths ? FaasActions[T]["Data"] : T extends ReactServerAction ? Awaited<ReturnType<T>> : T extends Record<string, any> ? T : Record<string, any>

Infer the returning data type.

Type Parameters

T

T = any