Wocart

@wocart/storefront v3.1.0


@wocart/storefront / astro / 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