FormTarget
A server function as a form target: its id and endpoint.
A server function as a form target: its id and endpoint.
Import#
ts
import type { FormTarget } from "@shadow-js/dusk/client";
Signature#
ts
interface FormTarget {
/** The stable id (the key of its submissions). */
readonly id: string;
/** The endpoint, for example `/_dusk/fn/<id>`: where a no-JS post goes. */
readonly url: string;
}
Members#
| Name | Type | Description |
|---|---|---|
id |
readonly id: string |
The stable id (the key of its submissions). |
url |
readonly url: string |
The endpoint, for example /_dusk/fn/<id>: where a no-JS post goes. |