Skip to main content
RecommendedStrictAuto-fixableScope
warnerrortrueGadget action files
What the linter reports:
  • Use ActionOnSuccess for onSuccess.
  • Use ActionRun for run.
  • Type onSuccess as ActionOnSuccess.
  • Type run as ActionRun.

Examples

api/models/widget/actions/create.ts
import { applyParams, save } from "gadget-server";
// missing ActionRun type annotation
export const run = async ({ params, record }) => {
  await applyParams(record, params);
  await save(record);
};
Last modified on March 10, 2026