defineApiLambda
defineApiLambda<
T>(config):ApiLambdaConfig
Defined in: packages/core/src/lambda/define.ts:35
Author a REST (v1) API lambda config. Injects kind:"api", gives inline
autocomplete inside routes[], and validates eagerly at module load. The
bare type annotation (const c: ApiLambdaConfig = {...}) remains fully
supported — this helper is recommended, not required.
Type Parameters
Section titled “Type Parameters”T extends Omit<ApiLambdaConfig, "kind">
Parameters
Section titled “Parameters”config
Section titled “config”T
Returns
Section titled “Returns”© 2026 Axis Tech. Powered by axis-tech.co.