[**@wocart/storefront v3.1.0**](../../README)

***

[@wocart/storefront](../../README) / [astro](../README) / ActionDescriptor

# Interface: ActionDescriptor\<TResult\>

## Type Parameters

### TResult

`TResult` *extends* `ActionHandlerResult` = `ActionHandlerResult`

## Properties

### calledFrom

> **calledFrom**: `string`

Astro sets this to "form" for HTML form submissions, "json" otherwise.

***

### handler

> **handler**: () => `Promise`\<`TResult`\>

#### Returns

`Promise`\<`TResult`\>

***

### name

> **name**: `string`
