Function: appKitServingTypesPlugin()
Function: appKitServingTypesPlugin()
function appKitServingTypesPlugin(options?: AppKitServingTypesPluginOptions): Plugin$1;Vite plugin to generate TypeScript types for AppKit serving endpoints. Fetches OpenAPI schemas from Databricks and generates a .d.ts with ServingEndpointRegistry module augmentation.
Endpoint discovery order:
- Explicit
endpointsoption (override) - AST extraction from server file (server/index.ts or server/server.ts)
- DATABRICKS_SERVING_ENDPOINT_NAME env var (single default endpoint)
Parameters
| Parameter | Type |
|---|---|
options? | AppKitServingTypesPluginOptions |
Returns
Plugin$1