← @mortar-kit/core

ActionContextinterface

import { ActionContext } from '@mortar-kit/core'

interface ActionContext

What the app passes to every action, besides the post: services that live on the server (a mailer, a database), so the brick's module (which the browser loads too) imports none of them. Empty by default; declare yours by augmenting it:

Properties

mailer?: Mailer

Sends email; undefined when none is configured.

inbox?: string

The site's inbox (CONTACT_TO).