Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Archived: Gadget is winding down. These tools are no longer maintained.
Require Gadget action run and onSuccess exports to use generated type annotations.
import { applyParams, save } from "gadget-server"; // missing ActionRun type annotation export const run = async ({ params, record }) => { await applyParams(record, params); await save(record); };
import { applyParams, save } from "gadget-server"; // ActionRun provides type-safe params and record export const run: ActionRun = async ({ params, record }) => { await applyParams(record, params); await save(record); };
Was this page helpful?