Skip to content

defineApiLambda

Open in ChatGPTOpen in Claude

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.

T extends Omit<ApiLambdaConfig, "kind">

T

ApiLambdaConfig

© 2026 Axis Tech. Powered by axis-tech.co.