← @mortar-kit/core

ActionInputinterface

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

interface ActionInput<D>

What a brick's action receives.

Properties

form: FormData

The posted form. Untrusted: check every value.

data: D

The entry's stored data, read on the server (never sent by the browser), normalized.

request: Request | undefined

The request the post arrived in, when the app passes it (e.g. for a per-client limit).

context: ActionContext

The app's server-side services (see ActionContext).