UNPKG

astro

Version:

Astro is a modern site builder with web best practices, performance, and DX front-of-mind.

9 lines (8 loc) 394 B
import type { ZodType } from 'zod'; import type { ActionAccept, ActionClient } from './server.js'; /** * Get server-side action based on the route path. * Imports from the virtual module `astro:internal-actions`, which maps to * the user's `src/actions/index.ts` file at build-time. */ export declare function getAction(path: string): Promise<ActionClient<unknown, ActionAccept, ZodType>>;