FaasJS
Home
  • Guide
  • Documents
  • Templates
  • Changelog
  • Ecosystem

    • Docker Images
  • Github
  • Contributing
  • Sponsor
  • Security
Home
  • Guide
  • Documents
  • Templates
  • Changelog
  • Ecosystem

    • Docker Images
  • Github
  • Contributing
  • Sponsor
  • Security

Documents / @faasjs/types

@faasjs/types

@faasjs/types

Shared action type helpers for FaasJS backends, generated route declarations, React callers, and TypeScript config presets.

License: MIT NPM Version

Install

Normally you don't need to install this package manually. It's a dependency of @faasjs/core and @faasjs/react.

Usage

TypeScript config presets

@faasjs/types also provides shared TypeScript presets under tsconfig/:

  • @faasjs/types/tsconfig/base.json: strict base options for common TypeScript projects.
  • @faasjs/types/tsconfig/react.json: base options with jsx: "react-jsx" for React projects.
  • @faasjs/types/tsconfig/build.json: build-oriented options for Vite apps, packages, and workspace modules.

In your tsconfig.json:

{
  "extends": "@faasjs/types/tsconfig/build.json"
}

Type Aliases

  • FaasActionPaths
  • FaasData
  • FaasParams
  • InferFaasAction